Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Driver for Zarlink MT312 Satellite Channel Decoder
0004 
0005     Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org>
0006 
0007 
0008     References:
0009     http://products.zarlink.com/product_profiles/MT312.htm
0010     http://products.zarlink.com/product_profiles/SL1935.htm
0011 */
0012 
0013 #ifndef MT312_H
0014 #define MT312_H
0015 
0016 #include <linux/dvb/frontend.h>
0017 
0018 struct mt312_config {
0019     /* the demodulator's i2c address */
0020     u8 demod_address;
0021 
0022     /* inverted voltage setting */
0023     unsigned int voltage_inverted:1;
0024 };
0025 
0026 #if IS_REACHABLE(CONFIG_DVB_MT312)
0027 struct dvb_frontend *mt312_attach(const struct mt312_config *config,
0028                     struct i2c_adapter *i2c);
0029 #else
0030 static inline struct dvb_frontend *mt312_attach(
0031     const struct mt312_config *config, struct i2c_adapter *i2c)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif /* CONFIG_DVB_MT312 */
0037 
0038 #endif /* MT312_H */