ASoC: rl6231: remove never matched if condition
[sfrench/cifs-2.6.git] / drivers / media / dvb-frontends / dvb-pll.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * descriptions + helper functions for simple dvb plls.
4  */
5
6 #ifndef __DVB_PLL_H__
7 #define __DVB_PLL_H__
8
9 #include <linux/i2c.h>
10 #include "dvb_frontend.h"
11
12 #define DVB_PLL_UNDEFINED               0
13 #define DVB_PLL_THOMSON_DTT7579         1
14 #define DVB_PLL_THOMSON_DTT759X         2
15 #define DVB_PLL_LG_Z201                 3
16 #define DVB_PLL_UNKNOWN_1               4
17 #define DVB_PLL_TUA6010XS               5
18 #define DVB_PLL_ENV57H1XD5              6
19 #define DVB_PLL_TUA6034                 7
20 #define DVB_PLL_TDA665X                 8
21 #define DVB_PLL_TDED4                   9
22 #define DVB_PLL_TDHU2                  10
23 #define DVB_PLL_SAMSUNG_TBMV           11
24 #define DVB_PLL_PHILIPS_SD1878_TDA8261 12
25 #define DVB_PLL_OPERA1                 13
26 #define DVB_PLL_SAMSUNG_DTOS403IH102A  14
27 #define DVB_PLL_SAMSUNG_TDTC9251DH0    15
28 #define DVB_PLL_SAMSUNG_TBDU18132      16
29 #define DVB_PLL_SAMSUNG_TBMU24112      17
30 #define DVB_PLL_TDEE4                  18
31 #define DVB_PLL_THOMSON_DTT7520X       19
32
33 /**
34  * Attach a dvb-pll to the supplied frontend structure.
35  *
36  * @param fe Frontend to attach to.
37  * @param pll_addr i2c address of the PLL (if used).
38  * @param i2c i2c adapter to use (set to NULL if not used).
39  * @param pll_desc_id dvb_pll_desc to use.
40  * @return Frontend pointer on success, NULL on failure
41  */
42 #if IS_REACHABLE(CONFIG_DVB_PLL)
43 extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
44                                            int pll_addr,
45                                            struct i2c_adapter *i2c,
46                                            unsigned int pll_desc_id);
47 #else
48 static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
49                                            int pll_addr,
50                                            struct i2c_adapter *i2c,
51                                            unsigned int pll_desc_id)
52 {
53         printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
54         return NULL;
55 }
56 #endif
57
58 #endif