Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Igor M. Liplianin | 2ccf5a9 | 2009-06-20 09:51:48 -0300 | [diff] [blame] | 2 | /* |
| 3 | Driver for Zarlink ZL10039 DVB-S tuner |
| 4 | |
| 5 | Copyright (C) 2007 Jan D. Louw <jd.louw@mweb.co.za> |
| 6 | |
Igor M. Liplianin | 2ccf5a9 | 2009-06-20 09:51:48 -0300 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef ZL10039_H |
| 10 | #define ZL10039_H |
| 11 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 12 | #if IS_REACHABLE(CONFIG_DVB_ZL10039) |
Igor M. Liplianin | 2ccf5a9 | 2009-06-20 09:51:48 -0300 | [diff] [blame] | 13 | struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe, |
| 14 | u8 i2c_addr, |
| 15 | struct i2c_adapter *i2c); |
| 16 | #else |
| 17 | static inline struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe, |
| 18 | u8 i2c_addr, |
| 19 | struct i2c_adapter *i2c) |
| 20 | { |
| 21 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 22 | return NULL; |
| 23 | } |
| 24 | #endif /* CONFIG_DVB_ZL10039 */ |
| 25 | |
| 26 | #endif /* ZL10039_H */ |