cx22700.h (778B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 Conexant CX22700 DVB OFDM demodulator driver 4 5 Copyright (C) 2001-2002 Convergence Integrated Media GmbH 6 Holger Waechtler <holger@convergence.de> 7 8 9*/ 10 11#ifndef CX22700_H 12#define CX22700_H 13 14#include <linux/dvb/frontend.h> 15 16struct cx22700_config 17{ 18 /* the demodulator's i2c address */ 19 u8 demod_address; 20}; 21 22#if IS_REACHABLE(CONFIG_DVB_CX22700) 23extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config, 24 struct i2c_adapter* i2c); 25#else 26static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config, 27 struct i2c_adapter* i2c) 28{ 29 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 30 return NULL; 31} 32#endif // CONFIG_DVB_CX22700 33 34#endif // CX22700_H