Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 2 | /* |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 3 | * Driver for Conexant CX24113/CX24128 Tuner (Satellite) |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org> |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef CX24113_H |
| 9 | #define CX24113_H |
| 10 | |
| 11 | struct dvb_frontend; |
| 12 | |
| 13 | struct cx24113_config { |
| 14 | u8 i2c_addr; /* 0x14 or 0x54 */ |
| 15 | |
| 16 | u32 xtal_khz; |
| 17 | }; |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113) |
Patrick Boettcher | 4c48ae8 | 2008-11-23 16:26:54 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *, |
| 21 | const struct cx24113_config *config, struct i2c_adapter *i2c); |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 22 | |
Patrick Boettcher | 4c48ae8 | 2008-11-23 16:26:54 -0300 | [diff] [blame] | 23 | extern void cx24113_agc_callback(struct dvb_frontend *fe); |
| 24 | #else |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 25 | static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, |
| 26 | const struct cx24113_config *config, struct i2c_adapter *i2c) |
| 27 | { |
| 28 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 29 | return NULL; |
| 30 | } |
| 31 | |
| 32 | static inline void cx24113_agc_callback(struct dvb_frontend *fe) |
| 33 | { |
| 34 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 35 | } |
Patrick Boettcher | 4c48ae8 | 2008-11-23 16:26:54 -0300 | [diff] [blame] | 36 | #endif |
Patrick Boettcher | c9dd82c | 2008-03-29 21:28:07 -0300 | [diff] [blame] | 37 | |
| 38 | #endif /* CX24113_H */ |