1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#ifndef _FC0013_H_
23#define _FC0013_H_
24
25#include <linux/kconfig.h>
26#include "dvb_frontend.h"
27#include "fc001x-common.h"
28
29#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC0013)
30extern struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
31 struct i2c_adapter *i2c,
32 u8 i2c_address, int dual_master,
33 enum fc001x_xtal_freq xtal_freq);
34extern int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val);
35extern int fc0013_rc_cal_reset(struct dvb_frontend *fe);
36#else
37static inline struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
38 struct i2c_adapter *i2c,
39 u8 i2c_address, int dual_master,
40 enum fc001x_xtal_freq xtal_freq)
41{
42 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
43 return NULL;
44}
45
46static inline int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
47{
48 return 0;
49}
50
51static inline int fc0013_rc_cal_reset(struct dvb_frontend *fe)
52{
53 return 0;
54}
55#endif
56
57#endif
58