Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     TDA665x tuner driver
0004     Copyright (C) Manu Abraham (abraham.manu@gmail.com)
0005 
0006 */
0007 
0008 #ifndef __TDA665x_H
0009 #define __TDA665x_H
0010 
0011 struct tda665x_config {
0012     char name[128];
0013 
0014     u8  addr;
0015     u32 frequency_min;
0016     u32 frequency_max;
0017     u32 frequency_offst;
0018     u32 ref_multiplier;
0019     u32 ref_divider;
0020 };
0021 
0022 #if IS_REACHABLE(CONFIG_DVB_TDA665x)
0023 
0024 extern struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
0025                        const struct tda665x_config *config,
0026                        struct i2c_adapter *i2c);
0027 
0028 #else
0029 
0030 static inline struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
0031                           const struct tda665x_config *config,
0032                           struct i2c_adapter *i2c)
0033 {
0034     printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
0035     return NULL;
0036 }
0037 
0038 #endif /* CONFIG_DVB_TDA665x */
0039 
0040 #endif /* __TDA665x_H */