Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / lgs8gl5.h
blob1ea9c4b5232ca27bb6e69ff301ebca31fc451dbc
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Legend Silicon LGS-8GL5 DMB-TH OFDM demodulator driver
5 Copyright (C) 2008 Sirius International (Hong Kong) Limited
6 Timothy Lee <timothy.lee@siriushk.com>
9 */
11 #ifndef LGS8GL5_H
12 #define LGS8GL5_H
14 #include <linux/dvb/frontend.h>
16 struct lgs8gl5_config {
17 /* the demodulator's i2c address */
18 u8 demod_address;
21 #if IS_REACHABLE(CONFIG_DVB_LGS8GL5)
22 extern struct dvb_frontend *lgs8gl5_attach(
23 const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
24 #else
25 static inline struct dvb_frontend *lgs8gl5_attach(
26 const struct lgs8gl5_config *config, struct i2c_adapter *i2c) {
27 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
28 return NULL;
30 #endif /* CONFIG_DVB_LGS8GL5 */
32 #endif /* LGS8GL5_H */