cx24117.h (758B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver 4 5 Copyright (C) 2013 Luis Alves <ljalvs@gmail.com> 6 (based on cx24116.h by Steven Toth) 7 8*/ 9 10#ifndef CX24117_H 11#define CX24117_H 12 13#include <linux/dvb/frontend.h> 14 15struct cx24117_config { 16 /* the demodulator's i2c address */ 17 u8 demod_address; 18}; 19 20#if IS_REACHABLE(CONFIG_DVB_CX24117) 21extern struct dvb_frontend *cx24117_attach( 22 const struct cx24117_config *config, 23 struct i2c_adapter *i2c); 24#else 25static inline struct dvb_frontend *cx24117_attach( 26 const struct cx24117_config *config, 27 struct i2c_adapter *i2c) 28{ 29 dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__); 30 return NULL; 31} 32#endif 33 34#endif /* CX24117_H */