Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Jochen Friedrich | b72dbae | 2009-02-02 14:50:09 -0300 | [diff] [blame] | 2 | /* |
| 3 | * Driver for Freescale MC44S803 Low Power CMOS Broadband Tuner |
| 4 | * |
| 5 | * Copyright (c) 2009 Jochen Friedrich <jochen@scram.de> |
Jochen Friedrich | b72dbae | 2009-02-02 14:50:09 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef MC44S803_H |
| 9 | #define MC44S803_H |
| 10 | |
| 11 | struct dvb_frontend; |
| 12 | struct i2c_adapter; |
| 13 | |
| 14 | struct mc44s803_config { |
| 15 | u8 i2c_address; |
| 16 | u8 dig_out; |
| 17 | }; |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MC44S803) |
Jochen Friedrich | b72dbae | 2009-02-02 14:50:09 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe, |
| 21 | struct i2c_adapter *i2c, struct mc44s803_config *cfg); |
| 22 | #else |
| 23 | static inline struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe, |
| 24 | struct i2c_adapter *i2c, struct mc44s803_config *cfg) |
| 25 | { |
| 26 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 27 | return NULL; |
| 28 | } |
| 29 | #endif /* CONFIG_MEDIA_TUNER_MC44S803 */ |
| 30 | |
| 31 | #endif |