18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Micronas DRX39xx family (drx3933j) 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Written by Devin Heitmueller <devin.heitmueller@kernellabs.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef DRX39XXJ_H 98c2ecf20Sopenharmony_ci#define DRX39XXJ_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/dvb/frontend.h> 128c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h> 138c2ecf20Sopenharmony_ci#include "drx_driver.h" 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistruct drx39xxj_state { 168c2ecf20Sopenharmony_ci struct i2c_adapter *i2c; 178c2ecf20Sopenharmony_ci struct drx_demod_instance *demod; 188c2ecf20Sopenharmony_ci struct dvb_frontend frontend; 198c2ecf20Sopenharmony_ci unsigned int i2c_gate_open:1; 208c2ecf20Sopenharmony_ci const struct firmware *fw; 218c2ecf20Sopenharmony_ci}; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_DRX39XYJ) 248c2ecf20Sopenharmony_cistruct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c); 258c2ecf20Sopenharmony_ci#else 268c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) { 278c2ecf20Sopenharmony_ci return NULL; 288c2ecf20Sopenharmony_ci}; 298c2ecf20Sopenharmony_ci#endif 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif /* DVB_DUMMY_FE_H */ 32