xref: /openbmc/linux/drivers/media/tuners/fc0013.h (revision 55fd7e02)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Fitipower FC0013 tuner driver
4  *
5  * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
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
43