Commit | Line | Data |
---|---|---|
74ba9207 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
1da177e4 LT |
2 | /* |
3 | Driver for Zarlink MT312 Satellite Channel Decoder | |
4 | ||
5 | Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org> | |
6 | ||
1da177e4 LT |
7 | |
8 | References: | |
9 | http://products.zarlink.com/product_profiles/MT312.htm | |
10 | http://products.zarlink.com/product_profiles/SL1935.htm | |
11 | */ | |
12 | ||
13 | #ifndef MT312_H | |
14 | #define MT312_H | |
15 | ||
16 | #include <linux/dvb/frontend.h> | |
17 | ||
89f64758 | 18 | struct mt312_config { |
1da177e4 LT |
19 | /* the demodulator's i2c address */ |
20 | u8 demod_address; | |
11d3f323 MS |
21 | |
22 | /* inverted voltage setting */ | |
a45e0b45 | 23 | unsigned int voltage_inverted:1; |
1da177e4 LT |
24 | }; |
25 | ||
9b174527 | 26 | #if IS_REACHABLE(CONFIG_DVB_MT312) |
e4671b6b | 27 | struct dvb_frontend *mt312_attach(const struct mt312_config *config, |
89f64758 | 28 | struct i2c_adapter *i2c); |
102a342b | 29 | #else |
e4671b6b | 30 | static inline struct dvb_frontend *mt312_attach( |
89f64758 | 31 | const struct mt312_config *config, struct i2c_adapter *i2c) |
102a342b | 32 | { |
271ddbf7 | 33 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
102a342b AQ |
34 | return NULL; |
35 | } | |
89f64758 | 36 | #endif /* CONFIG_DVB_MT312 */ |
1da177e4 | 37 | |
89f64758 | 38 | #endif /* MT312_H */ |