Merge branch 'perf/urgent' into perf/core, to pick up fixes
[linux-2.6-microblaze.git] / drivers / media / dvb-frontends / tda8261.h
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)
5
6 */
7
8 #ifndef __TDA8261_H
9 #define __TDA8261_H
10
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 */
17 };
18
19 struct tda8261_config {
20 //      u8                      buf[16];
21         u8                      addr;
22         enum tda8261_step       step_size;
23 };
24
25 #if IS_REACHABLE(CONFIG_DVB_TDA8261)
26
27 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
28                                            const struct tda8261_config *config,
29                                            struct i2c_adapter *i2c);
30
31 #else
32
33 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
34                                                   const struct tda8261_config *config,
35                                                   struct i2c_adapter *i2c)
36 {
37         printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
38         return NULL;
39 }
40
41 #endif //CONFIG_DVB_TDA8261
42
43 #endif// __TDA8261_H