| David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite" |
| 4 | * |
| 5 | * Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org> |
| Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef ITD1000_H |
| 9 | #define ITD1000_H |
| 10 | |
| 11 | struct dvb_frontend; |
| 12 | struct i2c_adapter; |
| 13 | |
| 14 | struct itd1000_config { |
| 15 | u8 i2c_address; |
| 16 | }; |
| 17 | |
| 18 | #if IS_REACHABLE(CONFIG_DVB_TUNER_ITD1000) |
| 19 | extern struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg); |
| 20 | #else |
| 21 | static inline struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg) |
| 22 | { |
| 23 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 24 | return NULL; |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 | #endif |