Path: blob/master/drivers/media/common/tuners/tda8290.h
15112 views
/*1This program is free software; you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation; either version 2 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program; if not, write to the Free Software13Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.14*/1516#ifndef __TDA8290_H__17#define __TDA8290_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122struct tda829x_config {23unsigned int lna_cfg;2425unsigned int probe_tuner:1;26#define TDA829X_PROBE_TUNER 027#define TDA829X_DONT_PROBE 128};2930#if defined(CONFIG_MEDIA_TUNER_TDA8290) || (defined(CONFIG_MEDIA_TUNER_TDA8290_MODULE) && defined(MODULE))31extern int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr);3233extern struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,34struct i2c_adapter *i2c_adap,35u8 i2c_addr,36struct tda829x_config *cfg);37#else38static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr)39{40printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);41return -EINVAL;42}4344static inline struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,45struct i2c_adapter *i2c_adap,46u8 i2c_addr,47struct tda829x_config *cfg)48{49printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",50__func__);51return NULL;52}53#endif5455#endif /* __TDA8290_H__ */565758