Path: blob/master/drivers/media/common/tuners/tea5761.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 __TEA5761_H__17#define __TEA5761_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122#if defined(CONFIG_MEDIA_TUNER_TEA5761) || (defined(CONFIG_MEDIA_TUNER_TEA5761_MODULE) && defined(MODULE))23extern int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr);2425extern struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,26struct i2c_adapter* i2c_adap,27u8 i2c_addr);28#else29static inline int tea5761_autodetection(struct i2c_adapter* i2c_adap,30u8 i2c_addr)31{32printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",33__func__);34return -EINVAL;35}3637static inline struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,38struct i2c_adapter* i2c_adap,39u8 i2c_addr)40{41printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);42return NULL;43}44#endif4546#endif /* __TEA5761_H__ */474849