Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / tda8261.h
blobd45a102a742cc863376d1fcb57390cfbe3a93508
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 TDA8261 8PSK/QPSK tuner driver
4 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
6 */
8 #ifndef __TDA8261_H
9 #define __TDA8261_H
11 enum tda8261_step {
12 TDA8261_STEP_2000 = 0, /* 2000 kHz */
13 TDA8261_STEP_1000, /* 1000 kHz */
14 TDA8261_STEP_500, /* 500 kHz */
15 TDA8261_STEP_250, /* 250 kHz */
16 TDA8261_STEP_125 /* 125 kHz */
19 struct tda8261_config {
20 // u8 buf[16];
21 u8 addr;
22 enum tda8261_step step_size;
25 #if IS_REACHABLE(CONFIG_DVB_TDA8261)
27 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
28 const struct tda8261_config *config,
29 struct i2c_adapter *i2c);
31 #else
33 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
34 const struct tda8261_config *config,
35 struct i2c_adapter *i2c)
37 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
38 return NULL;
41 #endif //CONFIG_DVB_TDA8261
43 #endif// __TDA8261_H