2019-05-27 08:55:06 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2006-09-23 20:40:20 -03:00
|
|
|
/*
|
2007-01-21 15:56:10 -03:00
|
|
|
* Driver for Quantek QT1010 silicon tuner
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2006 Antti Palosaari <crope@iki.fi>
|
|
|
|
|
* Aapo Tahkola <aet@rasterburn.org>
|
2006-09-23 20:40:20 -03:00
|
|
|
*/
|
|
|
|
|
|
2007-01-21 15:56:10 -03:00
|
|
|
#ifndef QT1010_H
|
|
|
|
|
#define QT1010_H
|
2006-09-23 20:40:20 -03:00
|
|
|
|
2017-12-28 13:03:51 -05:00
|
|
|
#include <media/dvb_frontend.h>
|
2006-09-23 20:40:20 -03:00
|
|
|
|
2007-01-21 15:56:10 -03:00
|
|
|
struct qt1010_config {
|
|
|
|
|
u8 i2c_address;
|
|
|
|
|
};
|
2006-09-23 20:40:20 -03:00
|
|
|
|
2007-01-21 15:56:10 -03:00
|
|
|
/**
|
2021-03-09 13:28:11 +01:00
|
|
|
* qt1010_attach() - Attach a qt1010 tuner to the supplied frontend structure
|
2007-01-21 15:56:10 -03:00
|
|
|
*
|
2021-03-09 13:28:11 +01:00
|
|
|
* @fe: frontend to attach to
|
|
|
|
|
* @i2c: i2c adapter to use
|
|
|
|
|
* @cfg: tuner hw based configuration
|
2007-01-21 15:56:10 -03:00
|
|
|
* @return fe pointer on success, NULL on failure
|
|
|
|
|
*/
|
2015-02-18 14:12:42 -03:00
|
|
|
#if IS_REACHABLE(CONFIG_MEDIA_TUNER_QT1010)
|
2007-01-21 15:56:10 -03:00
|
|
|
extern struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
|
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
|
struct qt1010_config *cfg);
|
|
|
|
|
#else
|
|
|
|
|
static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
|
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
|
struct qt1010_config *cfg)
|
2006-09-28 14:47:21 -03:00
|
|
|
{
|
2008-04-08 23:20:00 -03:00
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
2007-01-21 15:56:10 -03:00
|
|
|
return NULL;
|
2006-09-28 14:47:21 -03:00
|
|
|
}
|
2008-04-29 21:38:46 -03:00
|
|
|
#endif // CONFIG_MEDIA_TUNER_QT1010
|
2007-01-21 15:56:10 -03:00
|
|
|
|
2006-09-23 20:40:20 -03:00
|
|
|
#endif
|