Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / tuners / fc0011.h
blobebae37cc6f5f75af47814177f1f547321ecc9dab
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_FC0011_H_
3 #define LINUX_FC0011_H_
5 #include <media/dvb_frontend.h>
8 /** struct fc0011_config - fc0011 hardware config
10 * @i2c_address: I2C bus address.
12 struct fc0011_config {
13 u8 i2c_address;
16 /** enum fc0011_fe_callback_commands - Frontend callbacks
18 * @FC0011_FE_CALLBACK_POWER: Power on tuner hardware.
19 * @FC0011_FE_CALLBACK_RESET: Request a tuner reset.
21 enum fc0011_fe_callback_commands {
22 FC0011_FE_CALLBACK_POWER,
23 FC0011_FE_CALLBACK_RESET,
26 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0011)
27 struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
28 struct i2c_adapter *i2c,
29 const struct fc0011_config *config);
30 #else
31 static inline
32 struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
33 struct i2c_adapter *i2c,
34 const struct fc0011_config *config)
36 dev_err(&i2c->dev, "fc0011 driver disabled in Kconfig\n");
37 return NULL;
39 #endif
41 #endif /* LINUX_FC0011_H_ */