2019-05-20 10:19:02 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2006-08-08 16:10:10 +04:00
|
|
|
/*
|
|
|
|
Driver for Philips tda8262/tda8263 DVBS Silicon tuners
|
|
|
|
|
|
|
|
(c) 2006 Andrew de Quincey
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DVB_TDA826X_H__
|
|
|
|
#define __DVB_TDA826X_H__
|
|
|
|
|
|
|
|
#include <linux/i2c.h>
|
2017-12-28 21:03:51 +03:00
|
|
|
#include <media/dvb_frontend.h>
|
2006-08-08 16:10:10 +04:00
|
|
|
|
|
|
|
/**
|
2020-10-23 17:08:10 +03:00
|
|
|
* tda826x_attach - Attach a tda826x tuner to the supplied frontend structure.
|
2006-08-08 16:10:10 +04:00
|
|
|
*
|
2017-11-29 20:39:19 +03:00
|
|
|
* @fe: Frontend to attach to.
|
|
|
|
* @addr: i2c address of the tuner.
|
|
|
|
* @i2c: i2c adapter to use.
|
|
|
|
* @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
|
|
|
|
*
|
|
|
|
* return: FE pointer on success, NULL on failure.
|
2006-08-08 16:10:10 +04:00
|
|
|
*/
|
2015-02-18 20:12:42 +03:00
|
|
|
#if IS_REACHABLE(CONFIG_DVB_TDA826X)
|
2006-10-09 12:17:45 +04:00
|
|
|
extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
int has_loopthrough);
|
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe,
|
|
|
|
int addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
int has_loopthrough)
|
|
|
|
{
|
2008-04-09 06:20:00 +04:00
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
2006-10-09 12:17:45 +04:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif // CONFIG_DVB_TDA826X
|
|
|
|
|
|
|
|
#endif // __DVB_TDA826X_H__
|