Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Antti Palosaari | 51ff2e2 | 2010-08-13 03:41:02 -0300 | [diff] [blame] | 2 | /* |
| 3 | * NXP TDA18218HN silicon tuner driver |
| 4 | * |
| 5 | * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> |
Antti Palosaari | 51ff2e2 | 2010-08-13 03:41:02 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef TDA18218_H |
| 9 | #define TDA18218_H |
| 10 | |
Mauro Carvalho Chehab | fada193 | 2017-12-28 13:03:51 -0500 | [diff] [blame] | 11 | #include <media/dvb_frontend.h> |
Antti Palosaari | 51ff2e2 | 2010-08-13 03:41:02 -0300 | [diff] [blame] | 12 | |
| 13 | struct tda18218_config { |
| 14 | u8 i2c_address; |
| 15 | u8 i2c_wr_max; |
| 16 | u8 loop_through:1; |
| 17 | }; |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA18218) |
Antti Palosaari | 51ff2e2 | 2010-08-13 03:41:02 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe, |
| 21 | struct i2c_adapter *i2c, struct tda18218_config *cfg); |
| 22 | #else |
| 23 | static 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 |