WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / tuners / fc0013.h
blob74ce5903f1992a735a32c03da2f4a7913c829f14
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Fitipower FC0013 tuner driver
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
6 */
8 #ifndef _FC0013_H_
9 #define _FC0013_H_
11 #include <media/dvb_frontend.h>
12 #include "fc001x-common.h"
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)
27 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
28 return NULL;
31 static inline int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
33 return 0;
36 static inline int fc0013_rc_cal_reset(struct dvb_frontend *fe)
38 return 0;
40 #endif
42 #endif