blob: 7ab692bd724292d5beb8a63fdfcd3af8c8295316 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Antti Palosaari51ff2e22010-08-13 03:41:02 -03002/*
3 * NXP TDA18218HN silicon tuner driver
4 *
5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
Antti Palosaari51ff2e22010-08-13 03:41:02 -03006 */
7
8#ifndef TDA18218_H
9#define TDA18218_H
10
Mauro Carvalho Chehabfada1932017-12-28 13:03:51 -050011#include <media/dvb_frontend.h>
Antti Palosaari51ff2e22010-08-13 03:41:02 -030012
13struct tda18218_config {
14 u8 i2c_address;
15 u8 i2c_wr_max;
16 u8 loop_through:1;
17};
18
Arnd Bergmann9b174522015-02-18 14:12:42 -030019#if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA18218)
Antti Palosaari51ff2e22010-08-13 03:41:02 -030020extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
21 struct i2c_adapter *i2c, struct tda18218_config *cfg);
22#else
23static inline struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
24 struct i2c_adapter *i2c, struct tda18218_config *cfg)
25{
26 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
27 return NULL;
28}
29#endif
30
31#endif