Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     NxtWave Communications - NXT6000 demodulator driver
0004 
0005     Copyright (C) 2002-2003 Florian Schirmer <jolt@tuxbox.org>
0006     Copyright (C) 2003 Paul Andreassen <paul@andreassen.com.au>
0007 
0008 */
0009 
0010 #ifndef NXT6000_H
0011 #define NXT6000_H
0012 
0013 #include <linux/dvb/frontend.h>
0014 
0015 struct nxt6000_config
0016 {
0017     /* the demodulator's i2c address */
0018     u8 demod_address;
0019 
0020     /* should clock inversion be used? */
0021     u8 clock_inversion:1;
0022 };
0023 
0024 #if IS_REACHABLE(CONFIG_DVB_NXT6000)
0025 extern struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
0026                        struct i2c_adapter* i2c);
0027 #else
0028 static inline struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
0029                        struct i2c_adapter* i2c)
0030 {
0031     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0032     return NULL;
0033 }
0034 #endif // CONFIG_DVB_NXT6000
0035 
0036 #endif // NXT6000_H