Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / tuners / fc0012.h
blob99910567b6e384b0276e088a045ee85fe7d24fdb
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Fitipower FC0012 tuner driver - include
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
6 */
8 #ifndef _FC0012_H_
9 #define _FC0012_H_
11 #include <media/dvb_frontend.h>
12 #include "fc001x-common.h"
14 struct fc0012_config {
16 * I2C address
18 u8 i2c_address;
21 * clock
23 enum fc001x_xtal_freq xtal_freq;
25 bool dual_master;
28 * RF loop-through
30 bool loop_through;
33 * clock output
35 bool clock_out;
38 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0012)
39 extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
40 struct i2c_adapter *i2c,
41 const struct fc0012_config *cfg);
42 #else
43 static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
44 struct i2c_adapter *i2c,
45 const struct fc0012_config *cfg)
47 pr_warn("%s: driver disabled by Kconfig\n", __func__);
48 return NULL;
50 #endif
52 #endif