Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __MT2063_H__
0003 #define __MT2063_H__
0004 
0005 #include <media/dvb_frontend.h>
0006 
0007 struct mt2063_config {
0008     u8 tuner_address;
0009     u32 refclock;
0010 };
0011 
0012 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
0013 struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
0014                    struct mt2063_config *config,
0015                    struct i2c_adapter *i2c);
0016 
0017 #else
0018 
0019 static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
0020                    struct mt2063_config *config,
0021                    struct i2c_adapter *i2c)
0022 {
0023     printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
0024     return NULL;
0025 }
0026 
0027 #endif /* CONFIG_DVB_MT2063 */
0028 
0029 #endif /* __MT2063_H__ */