Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | NxtWave Communications - NXT6000 demodulator driver |
| 4 | |
| 5 | Copyright (C) 2002-2003 Florian Schirmer <jolt@tuxbox.org> |
| 6 | Copyright (C) 2003 Paul Andreassen <paul@andreassen.com.au> |
| 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef NXT6000_H |
| 11 | #define NXT6000_H |
| 12 | |
| 13 | #include <linux/dvb/frontend.h> |
| 14 | |
| 15 | struct nxt6000_config |
| 16 | { |
| 17 | /* the demodulator's i2c address */ |
| 18 | u8 demod_address; |
| 19 | |
| 20 | /* should clock inversion be used? */ |
| 21 | u8 clock_inversion:1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | }; |
| 23 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 24 | #if IS_REACHABLE(CONFIG_DVB_NXT6000) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | extern struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, |
| 26 | struct i2c_adapter* i2c); |
Andrew de Quincey | 102a342 | 2006-08-08 09:10:08 -0300 | [diff] [blame] | 27 | #else |
| 28 | static inline struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, |
| 29 | struct i2c_adapter* i2c) |
| 30 | { |
Harvey Harrison | 271ddbf | 2008-04-08 23:20:00 -0300 | [diff] [blame] | 31 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
Andrew de Quincey | 102a342 | 2006-08-08 09:10:08 -0300 | [diff] [blame] | 32 | return NULL; |
| 33 | } |
| 34 | #endif // CONFIG_DVB_NXT6000 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
| 36 | #endif // NXT6000_H |