This source file includes following definitions.
- fc0013_attach
- fc0013_rc_cal_add
- fc0013_rc_cal_reset
1
2
3
4
5
6
7
8 #ifndef _FC0013_H_
9 #define _FC0013_H_
10
11 #include <media/dvb_frontend.h>
12 #include "fc001x-common.h"
13
14 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0013)
15 extern struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
16 struct i2c_adapter *i2c,
17 u8 i2c_address, int dual_master,
18 enum fc001x_xtal_freq xtal_freq);
19 extern int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val);
20 extern int fc0013_rc_cal_reset(struct dvb_frontend *fe);
21 #else
22 static inline struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
23 struct i2c_adapter *i2c,
24 u8 i2c_address, int dual_master,
25 enum fc001x_xtal_freq xtal_freq)
26 {
27 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
28 return NULL;
29 }
30
31 static inline int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
32 {
33 return 0;
34 }
35
36 static inline int fc0013_rc_cal_reset(struct dvb_frontend *fe)
37 {
38 return 0;
39 }
40 #endif
41
42 #endif