brintos

brintos / linux-shallow public Read only

0
0
Text · 778 B · 178dd6b Raw
35 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3    Conexant CX22700 DVB OFDM demodulator driver4 5    Copyright (C) 2001-2002 Convergence Integrated Media GmbH6	Holger Waechtler <holger@convergence.de>7 8 9*/10 11#ifndef CX22700_H12#define CX22700_H13 14#include <linux/dvb/frontend.h>15 16struct cx22700_config17{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#else26static 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_CX2270033 34#endif // CX22700_H35