Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver
0004 
0005     Copyright (C) 2013 Luis Alves <ljalvs@gmail.com>
0006     (based on cx24116.h by Steven Toth)
0007 
0008 */
0009 
0010 #ifndef CX24117_H
0011 #define CX24117_H
0012 
0013 #include <linux/dvb/frontend.h>
0014 
0015 struct cx24117_config {
0016     /* the demodulator's i2c address */
0017     u8 demod_address;
0018 };
0019 
0020 #if IS_REACHABLE(CONFIG_DVB_CX24117)
0021 extern struct dvb_frontend *cx24117_attach(
0022     const struct cx24117_config *config,
0023     struct i2c_adapter *i2c);
0024 #else
0025 static inline struct dvb_frontend *cx24117_attach(
0026     const struct cx24117_config *config,
0027     struct i2c_adapter *i2c)
0028 {
0029     dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
0030     return NULL;
0031 }
0032 #endif
0033 
0034 #endif /* CX24117_H */