treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / dvb-frontends / drxd.h
blobba54fd9adab9ca8d784df924269dfa28989cf30c
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * drxd.h: DRXD DVB-T demodulator driver
5 * Copyright (C) 2005-2007 Micronas
6 */
8 #ifndef _DRXD_H_
9 #define _DRXD_H_
11 #include <linux/types.h>
12 #include <linux/i2c.h>
14 struct drxd_config {
15 u8 index;
17 u8 pll_address;
18 u8 pll_type;
19 #define DRXD_PLL_NONE 0
20 #define DRXD_PLL_DTT7520X 1
21 #define DRXD_PLL_MT3X0823 2
23 u32 clock;
24 u8 insert_rs_byte;
26 u8 demod_address;
27 u8 demoda_address;
28 u8 demod_revision;
30 /* If the tuner is not behind an i2c gate, be sure to flip this bit
31 or else the i2c bus could get wedged */
32 u8 disable_i2c_gate_ctrl;
34 u32 IF;
35 s16(*osc_deviation) (void *priv, s16 dev, int flag);
38 #if IS_REACHABLE(CONFIG_DVB_DRXD)
39 extern
40 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
41 void *priv, struct i2c_adapter *i2c,
42 struct device *dev);
43 #else
44 static inline
45 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
46 void *priv, struct i2c_adapter *i2c,
47 struct device *dev)
49 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
50 __func__);
51 return NULL;
53 #endif
55 #endif