1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Driver for Philips tda8262/tda8263 DVBS Silicon tuners
5 (c) 2006 Andrew de Quincey
10 #ifndef __DVB_TDA826X_H__
11 #define __DVB_TDA826X_H__
13 #include <linux/i2c.h>
14 #include <media/dvb_frontend.h>
17 * Attach a tda826x tuner to the supplied frontend structure.
19 * @fe: Frontend to attach to.
20 * @addr: i2c address of the tuner.
21 * @i2c: i2c adapter to use.
22 * @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
24 * return: FE pointer on success, NULL on failure.
26 #if IS_REACHABLE(CONFIG_DVB_TDA826X)
27 extern struct dvb_frontend
* tda826x_attach(struct dvb_frontend
*fe
, int addr
,
28 struct i2c_adapter
*i2c
,
31 static inline struct dvb_frontend
* tda826x_attach(struct dvb_frontend
*fe
,
33 struct i2c_adapter
*i2c
,
36 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
39 #endif // CONFIG_DVB_TDA826X
41 #endif // __DVB_TDA826X_H__