Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002   /*
0003      Driver for Philips tda8262/tda8263 DVBS Silicon tuners
0004 
0005      (c) 2006 Andrew de Quincey
0006 
0007 
0008   */
0009 
0010 #ifndef __DVB_TDA826X_H__
0011 #define __DVB_TDA826X_H__
0012 
0013 #include <linux/i2c.h>
0014 #include <media/dvb_frontend.h>
0015 
0016 /**
0017  * tda826x_attach - Attach a tda826x tuner to the supplied frontend structure.
0018  *
0019  * @fe: Frontend to attach to.
0020  * @addr: i2c address of the tuner.
0021  * @i2c: i2c adapter to use.
0022  * @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
0023  *
0024  * return: FE pointer on success, NULL on failure.
0025  */
0026 #if IS_REACHABLE(CONFIG_DVB_TDA826X)
0027 extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
0028                        struct i2c_adapter *i2c,
0029                        int has_loopthrough);
0030 #else
0031 static inline struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe,
0032                           int addr,
0033                           struct i2c_adapter *i2c,
0034                           int has_loopthrough)
0035 {
0036     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0037     return NULL;
0038 }
0039 #endif // CONFIG_DVB_TDA826X
0040 
0041 #endif // __DVB_TDA826X_H__