18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci    Conexant CX22700 DVB OFDM demodulator driver
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci    Copyright (C) 2001-2002 Convergence Integrated Media GmbH
68c2ecf20Sopenharmony_ci	Holger Waechtler <holger@convergence.de>
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci*/
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifndef CX22700_H
128c2ecf20Sopenharmony_ci#define CX22700_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <linux/dvb/frontend.h>
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_cistruct cx22700_config
178c2ecf20Sopenharmony_ci{
188c2ecf20Sopenharmony_ci	/* the demodulator's i2c address */
198c2ecf20Sopenharmony_ci	u8 demod_address;
208c2ecf20Sopenharmony_ci};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_CX22700)
238c2ecf20Sopenharmony_ciextern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
248c2ecf20Sopenharmony_ci					   struct i2c_adapter* i2c);
258c2ecf20Sopenharmony_ci#else
268c2ecf20Sopenharmony_cistatic inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
278c2ecf20Sopenharmony_ci					   struct i2c_adapter* i2c)
288c2ecf20Sopenharmony_ci{
298c2ecf20Sopenharmony_ci	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
308c2ecf20Sopenharmony_ci	return NULL;
318c2ecf20Sopenharmony_ci}
328c2ecf20Sopenharmony_ci#endif // CONFIG_DVB_CX22700
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif // CX22700_H
35