Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef LINUX_FC0011_H_
0003 #define LINUX_FC0011_H_
0004 
0005 #include <media/dvb_frontend.h>
0006 
0007 
0008 /** struct fc0011_config - fc0011 hardware config
0009  *
0010  * @i2c_address: I2C bus address.
0011  */
0012 struct fc0011_config {
0013     u8 i2c_address;
0014 };
0015 
0016 /** enum fc0011_fe_callback_commands - Frontend callbacks
0017  *
0018  * @FC0011_FE_CALLBACK_POWER: Power on tuner hardware.
0019  * @FC0011_FE_CALLBACK_RESET: Request a tuner reset.
0020  */
0021 enum fc0011_fe_callback_commands {
0022     FC0011_FE_CALLBACK_POWER,
0023     FC0011_FE_CALLBACK_RESET,
0024 };
0025 
0026 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0011)
0027 struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
0028                    struct i2c_adapter *i2c,
0029                    const struct fc0011_config *config);
0030 #else
0031 static inline
0032 struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
0033                    struct i2c_adapter *i2c,
0034                    const struct fc0011_config *config)
0035 {
0036     dev_err(&i2c->dev, "fc0011 driver disabled in Kconfig\n");
0037     return NULL;
0038 }
0039 #endif
0040 
0041 #endif /* LINUX_FC0011_H_ */