aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 15:11:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-23 08:03:59 -0400
commit782d8b743aad7dfffa4c01e9e8b57fd35247d70a (patch)
treef5ac388982dc40592ff8da91f94f3b6fe69a152c /drivers/media/dvb-frontends
parent54d80904b4c1f7aa1d569d07ca3e62fba0daf3a2 (diff)
[media] dvb-frontends: use IS_ENABLED
Instead of checking everywhere there for 3 symbols, use instead IS_ENABLED macro. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/a8293.h5
-rw-r--r--drivers/media/dvb-frontends/af9013.h4
-rw-r--r--drivers/media/dvb-frontends/af9033.h5
-rw-r--r--drivers/media/dvb-frontends/atbm8830.h4
-rw-r--r--drivers/media/dvb-frontends/au8522.h4
-rw-r--r--drivers/media/dvb-frontends/cx22702.h4
-rw-r--r--drivers/media/dvb-frontends/cx24113.h5
-rw-r--r--drivers/media/dvb-frontends/cx24116.h4
-rw-r--r--drivers/media/dvb-frontends/cx24123.h4
-rw-r--r--drivers/media/dvb-frontends/cxd2820r.h4
-rw-r--r--drivers/media/dvb-frontends/dib3000mc.h5
-rw-r--r--drivers/media/dvb-frontends/dib7000m.h5
-rw-r--r--drivers/media/dvb-frontends/dib7000p.h5
-rw-r--r--drivers/media/dvb-frontends/drxd.h4
-rw-r--r--drivers/media/dvb-frontends/drxk.h4
-rw-r--r--drivers/media/dvb-frontends/ds3000.h4
-rw-r--r--drivers/media/dvb-frontends/dvb_dummy_fe.h4
-rw-r--r--drivers/media/dvb-frontends/ec100.h4
-rw-r--r--drivers/media/dvb-frontends/hd29l2.h4
-rw-r--r--drivers/media/dvb-frontends/it913x-fe.h4
-rw-r--r--drivers/media/dvb-frontends/ix2505v.h4
-rw-r--r--drivers/media/dvb-frontends/lg2160.h4
-rw-r--r--drivers/media/dvb-frontends/lgdt3305.h4
-rw-r--r--drivers/media/dvb-frontends/lgs8gl5.h4
-rw-r--r--drivers/media/dvb-frontends/lgs8gxx.h4
-rw-r--r--drivers/media/dvb-frontends/lnbh24.h5
-rw-r--r--drivers/media/dvb-frontends/lnbp21.h5
-rw-r--r--drivers/media/dvb-frontends/lnbp22.h5
-rw-r--r--drivers/media/dvb-frontends/m88rs2000.h4
-rw-r--r--drivers/media/dvb-frontends/mb86a20s.h4
-rw-r--r--drivers/media/dvb-frontends/rtl2830.h4
-rw-r--r--drivers/media/dvb-frontends/rtl2832.h4
-rw-r--r--drivers/media/dvb-frontends/s5h1409.h4
-rw-r--r--drivers/media/dvb-frontends/s5h1411.h4
-rw-r--r--drivers/media/dvb-frontends/s5h1432.h4
-rw-r--r--drivers/media/dvb-frontends/s921.h4
-rw-r--r--drivers/media/dvb-frontends/si21xx.h4
-rw-r--r--drivers/media/dvb-frontends/stb6000.h4
-rw-r--r--drivers/media/dvb-frontends/stv0288.h4
-rw-r--r--drivers/media/dvb-frontends/stv0367.h4
-rw-r--r--drivers/media/dvb-frontends/stv0900.h4
-rw-r--r--drivers/media/dvb-frontends/stv6110.h4
-rw-r--r--drivers/media/dvb-frontends/tda10048.h4
-rw-r--r--drivers/media/dvb-frontends/tda10071.h4
-rw-r--r--drivers/media/dvb-frontends/tda18271c2dd.h6
-rw-r--r--drivers/media/dvb-frontends/ts2020.h4
-rw-r--r--drivers/media/dvb-frontends/zl10036.h4
-rw-r--r--drivers/media/dvb-frontends/zl10039.h5
48 files changed, 108 insertions, 96 deletions
diff --git a/drivers/media/dvb-frontends/a8293.h b/drivers/media/dvb-frontends/a8293.h
index ed29e5504f76..b6ef6427cfa5 100644
--- a/drivers/media/dvb-frontends/a8293.h
+++ b/drivers/media/dvb-frontends/a8293.h
@@ -21,12 +21,13 @@
21#ifndef A8293_H 21#ifndef A8293_H
22#define A8293_H 22#define A8293_H
23 23
24#include <linux/kconfig.h>
25
24struct a8293_config { 26struct a8293_config {
25 u8 i2c_addr; 27 u8 i2c_addr;
26}; 28};
27 29
28#if defined(CONFIG_DVB_A8293) || \ 30#if IS_ENABLED(CONFIG_DVB_A8293)
29 (defined(CONFIG_DVB_A8293_MODULE) && defined(MODULE))
30extern struct dvb_frontend *a8293_attach(struct dvb_frontend *fe, 31extern struct dvb_frontend *a8293_attach(struct dvb_frontend *fe,
31 struct i2c_adapter *i2c, const struct a8293_config *cfg); 32 struct i2c_adapter *i2c, const struct a8293_config *cfg);
32#else 33#else
diff --git a/drivers/media/dvb-frontends/af9013.h b/drivers/media/dvb-frontends/af9013.h
index dc837d91327a..09273b2cd310 100644
--- a/drivers/media/dvb-frontends/af9013.h
+++ b/drivers/media/dvb-frontends/af9013.h
@@ -25,6 +25,7 @@
25#ifndef AF9013_H 25#ifndef AF9013_H
26#define AF9013_H 26#define AF9013_H
27 27
28#include <linux/kconfig.h>
28#include <linux/dvb/frontend.h> 29#include <linux/dvb/frontend.h>
29 30
30/* AF9013/5 GPIOs (mostly guessed) 31/* AF9013/5 GPIOs (mostly guessed)
@@ -102,8 +103,7 @@ struct af9013_config {
102 u8 gpio[4]; 103 u8 gpio[4];
103}; 104};
104 105
105#if defined(CONFIG_DVB_AF9013) || \ 106#if IS_ENABLED(CONFIG_DVB_AF9013)
106 (defined(CONFIG_DVB_AF9013_MODULE) && defined(MODULE))
107extern struct dvb_frontend *af9013_attach(const struct af9013_config *config, 107extern struct dvb_frontend *af9013_attach(const struct af9013_config *config,
108 struct i2c_adapter *i2c); 108 struct i2c_adapter *i2c);
109#else 109#else
diff --git a/drivers/media/dvb-frontends/af9033.h b/drivers/media/dvb-frontends/af9033.h
index 53fd3040c5f0..c286e8f1ec02 100644
--- a/drivers/media/dvb-frontends/af9033.h
+++ b/drivers/media/dvb-frontends/af9033.h
@@ -22,6 +22,8 @@
22#ifndef AF9033_H 22#ifndef AF9033_H
23#define AF9033_H 23#define AF9033_H
24 24
25#include <linux/kconfig.h>
26
25struct af9033_config { 27struct af9033_config {
26 /* 28 /*
27 * I2C address 29 * I2C address
@@ -76,8 +78,7 @@ struct af9033_config {
76}; 78};
77 79
78 80
79#if defined(CONFIG_DVB_AF9033) || \ 81#if IS_ENABLED(CONFIG_DVB_AF9033)
80 (defined(CONFIG_DVB_AF9033_MODULE) && defined(MODULE))
81extern struct dvb_frontend *af9033_attach(const struct af9033_config *config, 82extern struct dvb_frontend *af9033_attach(const struct af9033_config *config,
82 struct i2c_adapter *i2c); 83 struct i2c_adapter *i2c);
83#else 84#else
diff --git a/drivers/media/dvb-frontends/atbm8830.h b/drivers/media/dvb-frontends/atbm8830.h
index 024273374bd8..8e0ac98f8d08 100644
--- a/drivers/media/dvb-frontends/atbm8830.h
+++ b/drivers/media/dvb-frontends/atbm8830.h
@@ -22,6 +22,7 @@
22#ifndef __ATBM8830_H__ 22#ifndef __ATBM8830_H__
23#define __ATBM8830_H__ 23#define __ATBM8830_H__
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26#include <linux/i2c.h> 27#include <linux/i2c.h>
27 28
@@ -60,8 +61,7 @@ struct atbm8830_config {
60 u8 agc_hold_loop; 61 u8 agc_hold_loop;
61}; 62};
62 63
63#if defined(CONFIG_DVB_ATBM8830) || \ 64#if IS_ENABLED(CONFIG_DVB_ATBM8830)
64 (defined(CONFIG_DVB_ATBM8830_MODULE) && defined(MODULE))
65extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config, 65extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,
66 struct i2c_adapter *i2c); 66 struct i2c_adapter *i2c);
67#else 67#else
diff --git a/drivers/media/dvb-frontends/au8522.h b/drivers/media/dvb-frontends/au8522.h
index 565dcf31af57..f2111e0fefda 100644
--- a/drivers/media/dvb-frontends/au8522.h
+++ b/drivers/media/dvb-frontends/au8522.h
@@ -22,6 +22,7 @@
22#ifndef __AU8522_H__ 22#ifndef __AU8522_H__
23#define __AU8522_H__ 23#define __AU8522_H__
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27enum au8522_if_freq { 28enum au8522_if_freq {
@@ -60,8 +61,7 @@ struct au8522_config {
60 enum au8522_if_freq qam_if; 61 enum au8522_if_freq qam_if;
61}; 62};
62 63
63#if defined(CONFIG_DVB_AU8522) || \ 64#if IS_ENABLED(CONFIG_DVB_AU8522)
64 (defined(CONFIG_DVB_AU8522_MODULE) && defined(MODULE))
65extern struct dvb_frontend *au8522_attach(const struct au8522_config *config, 65extern struct dvb_frontend *au8522_attach(const struct au8522_config *config,
66 struct i2c_adapter *i2c); 66 struct i2c_adapter *i2c);
67#else 67#else
diff --git a/drivers/media/dvb-frontends/cx22702.h b/drivers/media/dvb-frontends/cx22702.h
index f154e1f428eb..0b1a6c2f9d5f 100644
--- a/drivers/media/dvb-frontends/cx22702.h
+++ b/drivers/media/dvb-frontends/cx22702.h
@@ -28,6 +28,7 @@
28#ifndef CX22702_H 28#ifndef CX22702_H
29#define CX22702_H 29#define CX22702_H
30 30
31#include <linux/kconfig.h>
31#include <linux/dvb/frontend.h> 32#include <linux/dvb/frontend.h>
32 33
33struct cx22702_config { 34struct cx22702_config {
@@ -40,8 +41,7 @@ struct cx22702_config {
40 u8 output_mode; 41 u8 output_mode;
41}; 42};
42 43
43#if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) \ 44#if IS_ENABLED(CONFIG_DVB_CX22702)
44 && defined(MODULE))
45extern struct dvb_frontend *cx22702_attach( 45extern struct dvb_frontend *cx22702_attach(
46 const struct cx22702_config *config, 46 const struct cx22702_config *config,
47 struct i2c_adapter *i2c); 47 struct i2c_adapter *i2c);
diff --git a/drivers/media/dvb-frontends/cx24113.h b/drivers/media/dvb-frontends/cx24113.h
index 01eb7b9c28f4..782711ba1a32 100644
--- a/drivers/media/dvb-frontends/cx24113.h
+++ b/drivers/media/dvb-frontends/cx24113.h
@@ -22,6 +22,8 @@
22#ifndef CX24113_H 22#ifndef CX24113_H
23#define CX24113_H 23#define CX24113_H
24 24
25#include <linux/kconfig.h>
26
25struct dvb_frontend; 27struct dvb_frontend;
26 28
27struct cx24113_config { 29struct cx24113_config {
@@ -30,8 +32,7 @@ struct cx24113_config {
30 u32 xtal_khz; 32 u32 xtal_khz;
31}; 33};
32 34
33#if defined(CONFIG_DVB_TUNER_CX24113) || \ 35#if IS_ENABLED(CONFIG_DVB_TUNER_CX24113)
34 (defined(CONFIG_DVB_TUNER_CX24113_MODULE) && defined(MODULE))
35extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *, 36extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
36 const struct cx24113_config *config, struct i2c_adapter *i2c); 37 const struct cx24113_config *config, struct i2c_adapter *i2c);
37 38
diff --git a/drivers/media/dvb-frontends/cx24116.h b/drivers/media/dvb-frontends/cx24116.h
index 7d90ab949c03..2ec84fae3f9f 100644
--- a/drivers/media/dvb-frontends/cx24116.h
+++ b/drivers/media/dvb-frontends/cx24116.h
@@ -21,6 +21,7 @@
21#ifndef CX24116_H 21#ifndef CX24116_H
22#define CX24116_H 22#define CX24116_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25 26
26struct cx24116_config { 27struct cx24116_config {
@@ -40,8 +41,7 @@ struct cx24116_config {
40 u16 i2c_wr_max; 41 u16 i2c_wr_max;
41}; 42};
42 43
43#if defined(CONFIG_DVB_CX24116) || \ 44#if IS_ENABLED(CONFIG_DVB_CX24116)
44 (defined(CONFIG_DVB_CX24116_MODULE) && defined(MODULE))
45extern struct dvb_frontend *cx24116_attach( 45extern struct dvb_frontend *cx24116_attach(
46 const struct cx24116_config *config, 46 const struct cx24116_config *config,
47 struct i2c_adapter *i2c); 47 struct i2c_adapter *i2c);
diff --git a/drivers/media/dvb-frontends/cx24123.h b/drivers/media/dvb-frontends/cx24123.h
index 51ae866e9fed..102e70d17c43 100644
--- a/drivers/media/dvb-frontends/cx24123.h
+++ b/drivers/media/dvb-frontends/cx24123.h
@@ -21,6 +21,7 @@
21#ifndef CX24123_H 21#ifndef CX24123_H
22#define CX24123_H 22#define CX24123_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25 26
26struct cx24123_config { 27struct cx24123_config {
@@ -38,8 +39,7 @@ struct cx24123_config {
38 void (*agc_callback) (struct dvb_frontend *); 39 void (*agc_callback) (struct dvb_frontend *);
39}; 40};
40 41
41#if defined(CONFIG_DVB_CX24123) || (defined(CONFIG_DVB_CX24123_MODULE) \ 42#if IS_ENABLED(CONFIG_DVB_CX24123)
42 && defined(MODULE))
43extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config, 43extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config,
44 struct i2c_adapter *i2c); 44 struct i2c_adapter *i2c);
45extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *); 45extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *);
diff --git a/drivers/media/dvb-frontends/cxd2820r.h b/drivers/media/dvb-frontends/cxd2820r.h
index 6acc21c581c5..82b3d93718f8 100644
--- a/drivers/media/dvb-frontends/cxd2820r.h
+++ b/drivers/media/dvb-frontends/cxd2820r.h
@@ -22,6 +22,7 @@
22#ifndef CXD2820R_H 22#ifndef CXD2820R_H
23#define CXD2820R_H 23#define CXD2820R_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27#define CXD2820R_GPIO_D (0 << 0) /* disable */ 28#define CXD2820R_GPIO_D (0 << 0) /* disable */
@@ -65,8 +66,7 @@ struct cxd2820r_config {
65}; 66};
66 67
67 68
68#if defined(CONFIG_DVB_CXD2820R) || \ 69#if IS_ENABLED(CONFIG_DVB_CXD2820R)
69 (defined(CONFIG_DVB_CXD2820R_MODULE) && defined(MODULE))
70extern struct dvb_frontend *cxd2820r_attach( 70extern struct dvb_frontend *cxd2820r_attach(
71 const struct cxd2820r_config *config, 71 const struct cxd2820r_config *config,
72 struct i2c_adapter *i2c, 72 struct i2c_adapter *i2c,
diff --git a/drivers/media/dvb-frontends/dib3000mc.h b/drivers/media/dvb-frontends/dib3000mc.h
index d75ffad2d752..129d1425516a 100644
--- a/drivers/media/dvb-frontends/dib3000mc.h
+++ b/drivers/media/dvb-frontends/dib3000mc.h
@@ -13,6 +13,8 @@
13#ifndef DIB3000MC_H 13#ifndef DIB3000MC_H
14#define DIB3000MC_H 14#define DIB3000MC_H
15 15
16#include <linux/kconfig.h>
17
16#include "dibx000_common.h" 18#include "dibx000_common.h"
17 19
18struct dib3000mc_config { 20struct dib3000mc_config {
@@ -39,8 +41,7 @@ struct dib3000mc_config {
39#define DEFAULT_DIB3000MC_I2C_ADDRESS 16 41#define DEFAULT_DIB3000MC_I2C_ADDRESS 16
40#define DEFAULT_DIB3000P_I2C_ADDRESS 24 42#define DEFAULT_DIB3000P_I2C_ADDRESS 24
41 43
42#if defined(CONFIG_DVB_DIB3000MC) || (defined(CONFIG_DVB_DIB3000MC_MODULE) && \ 44#if IS_ENABLED(CONFIG_DVB_DIB3000MC)
43 defined(MODULE))
44extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap, 45extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap,
45 u8 i2c_addr, 46 u8 i2c_addr,
46 struct dib3000mc_config *cfg); 47 struct dib3000mc_config *cfg);
diff --git a/drivers/media/dvb-frontends/dib7000m.h b/drivers/media/dvb-frontends/dib7000m.h
index 81fcf2241c64..b585413f9a29 100644
--- a/drivers/media/dvb-frontends/dib7000m.h
+++ b/drivers/media/dvb-frontends/dib7000m.h
@@ -1,6 +1,8 @@
1#ifndef DIB7000M_H 1#ifndef DIB7000M_H
2#define DIB7000M_H 2#define DIB7000M_H
3 3
4#include <linux/kconfig.h>
5
4#include "dibx000_common.h" 6#include "dibx000_common.h"
5 7
6struct dib7000m_config { 8struct dib7000m_config {
@@ -38,8 +40,7 @@ struct dib7000m_config {
38 40
39#define DEFAULT_DIB7000M_I2C_ADDRESS 18 41#define DEFAULT_DIB7000M_I2C_ADDRESS 18
40 42
41#if defined(CONFIG_DVB_DIB7000M) || (defined(CONFIG_DVB_DIB7000M_MODULE) && \ 43#if IS_ENABLED(CONFIG_DVB_DIB7000M)
42 defined(MODULE))
43extern struct dvb_frontend *dib7000m_attach(struct i2c_adapter *i2c_adap, 44extern struct dvb_frontend *dib7000m_attach(struct i2c_adapter *i2c_adap,
44 u8 i2c_addr, 45 u8 i2c_addr,
45 struct dib7000m_config *cfg); 46 struct dib7000m_config *cfg);
diff --git a/drivers/media/dvb-frontends/dib7000p.h b/drivers/media/dvb-frontends/dib7000p.h
index b61b03a6e1ed..cf5e77956a1f 100644
--- a/drivers/media/dvb-frontends/dib7000p.h
+++ b/drivers/media/dvb-frontends/dib7000p.h
@@ -1,6 +1,8 @@
1#ifndef DIB7000P_H 1#ifndef DIB7000P_H
2#define DIB7000P_H 2#define DIB7000P_H
3 3
4#include <linux/kconfig.h>
5
4#include "dibx000_common.h" 6#include "dibx000_common.h"
5 7
6struct dib7000p_config { 8struct dib7000p_config {
@@ -44,8 +46,7 @@ struct dib7000p_config {
44 46
45#define DEFAULT_DIB7000P_I2C_ADDRESS 18 47#define DEFAULT_DIB7000P_I2C_ADDRESS 18
46 48
47#if defined(CONFIG_DVB_DIB7000P) || (defined(CONFIG_DVB_DIB7000P_MODULE) && \ 49#if IS_ENABLED(CONFIG_DVB_DIB7000P)
48 defined(MODULE))
49extern struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000p_config *cfg); 50extern struct dvb_frontend *dib7000p_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000p_config *cfg);
50extern struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int); 51extern struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int);
51extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib7000p_config cfg[]); 52extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib7000p_config cfg[]);
diff --git a/drivers/media/dvb-frontends/drxd.h b/drivers/media/dvb-frontends/drxd.h
index 216c8c3702f8..5f1d6b5f1685 100644
--- a/drivers/media/dvb-frontends/drxd.h
+++ b/drivers/media/dvb-frontends/drxd.h
@@ -24,6 +24,7 @@
24#ifndef _DRXD_H_ 24#ifndef _DRXD_H_
25#define _DRXD_H_ 25#define _DRXD_H_
26 26
27#include <linux/kconfig.h>
27#include <linux/types.h> 28#include <linux/types.h>
28#include <linux/i2c.h> 29#include <linux/i2c.h>
29 30
@@ -51,8 +52,7 @@ struct drxd_config {
51 s16(*osc_deviation) (void *priv, s16 dev, int flag); 52 s16(*osc_deviation) (void *priv, s16 dev, int flag);
52}; 53};
53 54
54#if defined(CONFIG_DVB_DRXD) || \ 55#if IS_ENABLED(CONFIG_DVB_DRXD)
55 (defined(CONFIG_DVB_DRXD_MODULE) && defined(MODULE))
56extern 56extern
57struct dvb_frontend *drxd_attach(const struct drxd_config *config, 57struct dvb_frontend *drxd_attach(const struct drxd_config *config,
58 void *priv, struct i2c_adapter *i2c, 58 void *priv, struct i2c_adapter *i2c,
diff --git a/drivers/media/dvb-frontends/drxk.h b/drivers/media/dvb-frontends/drxk.h
index 94fecfbf14c1..e6667189ddce 100644
--- a/drivers/media/dvb-frontends/drxk.h
+++ b/drivers/media/dvb-frontends/drxk.h
@@ -1,6 +1,7 @@
1#ifndef _DRXK_H_ 1#ifndef _DRXK_H_
2#define _DRXK_H_ 2#define _DRXK_H_
3 3
4#include <linux/kconfig.h>
4#include <linux/types.h> 5#include <linux/types.h>
5#include <linux/i2c.h> 6#include <linux/i2c.h>
6 7
@@ -52,8 +53,7 @@ struct drxk_config {
52 int qam_demod_parameter_count; 53 int qam_demod_parameter_count;
53}; 54};
54 55
55#if defined(CONFIG_DVB_DRXK) || (defined(CONFIG_DVB_DRXK_MODULE) \ 56#if IS_ENABLED(CONFIG_DVB_DRXK)
56 && defined(MODULE))
57extern struct dvb_frontend *drxk_attach(const struct drxk_config *config, 57extern struct dvb_frontend *drxk_attach(const struct drxk_config *config,
58 struct i2c_adapter *i2c); 58 struct i2c_adapter *i2c);
59#else 59#else
diff --git a/drivers/media/dvb-frontends/ds3000.h b/drivers/media/dvb-frontends/ds3000.h
index 478ad66c63d7..f9c21fb7af13 100644
--- a/drivers/media/dvb-frontends/ds3000.h
+++ b/drivers/media/dvb-frontends/ds3000.h
@@ -22,6 +22,7 @@
22#ifndef DS3000_H 22#ifndef DS3000_H
23#define DS3000_H 23#define DS3000_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27struct ds3000_config { 28struct ds3000_config {
@@ -34,8 +35,7 @@ struct ds3000_config {
34 void (*set_lock_led)(struct dvb_frontend *fe, int offon); 35 void (*set_lock_led)(struct dvb_frontend *fe, int offon);
35}; 36};
36 37
37#if defined(CONFIG_DVB_DS3000) || \ 38#if IS_ENABLED(CONFIG_DVB_DS3000)
38 (defined(CONFIG_DVB_DS3000_MODULE) && defined(MODULE))
39extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config, 39extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
40 struct i2c_adapter *i2c); 40 struct i2c_adapter *i2c);
41#else 41#else
diff --git a/drivers/media/dvb-frontends/dvb_dummy_fe.h b/drivers/media/dvb-frontends/dvb_dummy_fe.h
index 1fcb987d6386..0cbf96105631 100644
--- a/drivers/media/dvb-frontends/dvb_dummy_fe.h
+++ b/drivers/media/dvb-frontends/dvb_dummy_fe.h
@@ -22,11 +22,11 @@
22#ifndef DVB_DUMMY_FE_H 22#ifndef DVB_DUMMY_FE_H
23#define DVB_DUMMY_FE_H 23#define DVB_DUMMY_FE_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26#include "dvb_frontend.h" 27#include "dvb_frontend.h"
27 28
28#if defined(CONFIG_DVB_DUMMY_FE) || (defined(CONFIG_DVB_DUMMY_FE_MODULE) && \ 29#if IS_ENABLED(CONFIG_DVB_DUMMY_FE)
29defined(MODULE))
30extern struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void); 30extern struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void);
31extern struct dvb_frontend* dvb_dummy_fe_qpsk_attach(void); 31extern struct dvb_frontend* dvb_dummy_fe_qpsk_attach(void);
32extern struct dvb_frontend* dvb_dummy_fe_qam_attach(void); 32extern struct dvb_frontend* dvb_dummy_fe_qam_attach(void);
diff --git a/drivers/media/dvb-frontends/ec100.h b/drivers/media/dvb-frontends/ec100.h
index b8479719d7f1..37558403068d 100644
--- a/drivers/media/dvb-frontends/ec100.h
+++ b/drivers/media/dvb-frontends/ec100.h
@@ -22,6 +22,7 @@
22#ifndef EC100_H 22#ifndef EC100_H
23#define EC100_H 23#define EC100_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27struct ec100_config { 28struct ec100_config {
@@ -30,8 +31,7 @@ struct ec100_config {
30}; 31};
31 32
32 33
33#if defined(CONFIG_DVB_EC100) || \ 34#if IS_ENABLED(CONFIG_DVB_EC100)
34 (defined(CONFIG_DVB_EC100_MODULE) && defined(MODULE))
35extern struct dvb_frontend *ec100_attach(const struct ec100_config *config, 35extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
36 struct i2c_adapter *i2c); 36 struct i2c_adapter *i2c);
37#else 37#else
diff --git a/drivers/media/dvb-frontends/hd29l2.h b/drivers/media/dvb-frontends/hd29l2.h
index 4ad00d79aa77..05cd13028a91 100644
--- a/drivers/media/dvb-frontends/hd29l2.h
+++ b/drivers/media/dvb-frontends/hd29l2.h
@@ -23,6 +23,7 @@
23#ifndef HD29L2_H 23#ifndef HD29L2_H
24#define HD29L2_H 24#define HD29L2_H
25 25
26#include <linux/kconfig.h>
26#include <linux/dvb/frontend.h> 27#include <linux/dvb/frontend.h>
27 28
28struct hd29l2_config { 29struct hd29l2_config {
@@ -50,8 +51,7 @@ struct hd29l2_config {
50}; 51};
51 52
52 53
53#if defined(CONFIG_DVB_HD29L2) || \ 54#if IS_ENABLED(CONFIG_DVB_HD29L2)
54 (defined(CONFIG_DVB_HD29L2_MODULE) && defined(MODULE))
55extern struct dvb_frontend *hd29l2_attach(const struct hd29l2_config *config, 55extern struct dvb_frontend *hd29l2_attach(const struct hd29l2_config *config,
56 struct i2c_adapter *i2c); 56 struct i2c_adapter *i2c);
57#else 57#else
diff --git a/drivers/media/dvb-frontends/it913x-fe.h b/drivers/media/dvb-frontends/it913x-fe.h
index 07fa4594c12b..df0ad4207343 100644
--- a/drivers/media/dvb-frontends/it913x-fe.h
+++ b/drivers/media/dvb-frontends/it913x-fe.h
@@ -21,6 +21,7 @@
21#ifndef IT913X_FE_H 21#ifndef IT913X_FE_H
22#define IT913X_FE_H 22#define IT913X_FE_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25#include "dvb_frontend.h" 26#include "dvb_frontend.h"
26 27
@@ -38,8 +39,7 @@ struct ite_config {
38 u8 read_slevel; 39 u8 read_slevel;
39}; 40};
40 41
41#if defined(CONFIG_DVB_IT913X_FE) || (defined(CONFIG_DVB_IT913X_FE_MODULE) && \ 42#if IS_ENABLED(CONFIG_DVB_IT913X_FE)
42defined(MODULE))
43extern struct dvb_frontend *it913x_fe_attach(struct i2c_adapter *i2c_adap, 43extern struct dvb_frontend *it913x_fe_attach(struct i2c_adapter *i2c_adap,
44 u8 i2c_addr, struct ite_config *config); 44 u8 i2c_addr, struct ite_config *config);
45#else 45#else
diff --git a/drivers/media/dvb-frontends/ix2505v.h b/drivers/media/dvb-frontends/ix2505v.h
index 67e89d616d50..1a735a75aa98 100644
--- a/drivers/media/dvb-frontends/ix2505v.h
+++ b/drivers/media/dvb-frontends/ix2505v.h
@@ -20,6 +20,7 @@
20#ifndef DVB_IX2505V_H 20#ifndef DVB_IX2505V_H
21#define DVB_IX2505V_H 21#define DVB_IX2505V_H
22 22
23#include <linux/kconfig.h>
23#include <linux/i2c.h> 24#include <linux/i2c.h>
24#include "dvb_frontend.h" 25#include "dvb_frontend.h"
25 26
@@ -48,8 +49,7 @@ struct ix2505v_config {
48 49
49}; 50};
50 51
51#if defined(CONFIG_DVB_IX2505V) || \ 52#if IS_ENABLED(CONFIG_DVB_IX2505V)
52 (defined(CONFIG_DVB_IX2505V_MODULE) && defined(MODULE))
53extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe, 53extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
54 const struct ix2505v_config *config, struct i2c_adapter *i2c); 54 const struct ix2505v_config *config, struct i2c_adapter *i2c);
55#else 55#else
diff --git a/drivers/media/dvb-frontends/lg2160.h b/drivers/media/dvb-frontends/lg2160.h
index 9e2c0f41199a..a5f036824d68 100644
--- a/drivers/media/dvb-frontends/lg2160.h
+++ b/drivers/media/dvb-frontends/lg2160.h
@@ -22,6 +22,7 @@
22#ifndef _LG2160_H_ 22#ifndef _LG2160_H_
23#define _LG2160_H_ 23#define _LG2160_H_
24 24
25#include <linux/kconfig.h>
25#include <linux/i2c.h> 26#include <linux/i2c.h>
26#include "dvb_frontend.h" 27#include "dvb_frontend.h"
27 28
@@ -66,8 +67,7 @@ struct lg2160_config {
66 enum lg_chip_type lg_chip; 67 enum lg_chip_type lg_chip;
67}; 68};
68 69
69#if defined(CONFIG_DVB_LG2160) || (defined(CONFIG_DVB_LG2160_MODULE) && \ 70#if IS_ENABLED(CONFIG_DVB_LG2160)
70 defined(MODULE))
71extern 71extern
72struct dvb_frontend *lg2160_attach(const struct lg2160_config *config, 72struct dvb_frontend *lg2160_attach(const struct lg2160_config *config,
73 struct i2c_adapter *i2c_adap); 73 struct i2c_adapter *i2c_adap);
diff --git a/drivers/media/dvb-frontends/lgdt3305.h b/drivers/media/dvb-frontends/lgdt3305.h
index 02172eca4d47..d9ab556c1b27 100644
--- a/drivers/media/dvb-frontends/lgdt3305.h
+++ b/drivers/media/dvb-frontends/lgdt3305.h
@@ -22,6 +22,7 @@
22#ifndef _LGDT3305_H_ 22#ifndef _LGDT3305_H_
23#define _LGDT3305_H_ 23#define _LGDT3305_H_
24 24
25#include <linux/kconfig.h>
25#include <linux/i2c.h> 26#include <linux/i2c.h>
26#include "dvb_frontend.h" 27#include "dvb_frontend.h"
27 28
@@ -73,8 +74,7 @@ struct lgdt3305_config {
73 enum lgdt_demod_chip_type demod_chip; 74 enum lgdt_demod_chip_type demod_chip;
74}; 75};
75 76
76#if defined(CONFIG_DVB_LGDT3305) || (defined(CONFIG_DVB_LGDT3305_MODULE) && \ 77#if IS_ENABLED(CONFIG_DVB_LGDT3305)
77 defined(MODULE))
78extern 78extern
79struct dvb_frontend *lgdt3305_attach(const struct lgdt3305_config *config, 79struct dvb_frontend *lgdt3305_attach(const struct lgdt3305_config *config,
80 struct i2c_adapter *i2c_adap); 80 struct i2c_adapter *i2c_adap);
diff --git a/drivers/media/dvb-frontends/lgs8gl5.h b/drivers/media/dvb-frontends/lgs8gl5.h
index d14176787a7d..c2da59614727 100644
--- a/drivers/media/dvb-frontends/lgs8gl5.h
+++ b/drivers/media/dvb-frontends/lgs8gl5.h
@@ -23,6 +23,7 @@
23#ifndef LGS8GL5_H 23#ifndef LGS8GL5_H
24#define LGS8GL5_H 24#define LGS8GL5_H
25 25
26#include <linux/kconfig.h>
26#include <linux/dvb/frontend.h> 27#include <linux/dvb/frontend.h>
27 28
28struct lgs8gl5_config { 29struct lgs8gl5_config {
@@ -30,8 +31,7 @@ struct lgs8gl5_config {
30 u8 demod_address; 31 u8 demod_address;
31}; 32};
32 33
33#if defined(CONFIG_DVB_LGS8GL5) || \ 34#if IS_ENABLED(CONFIG_DVB_LGS8GL5)
34 (defined(CONFIG_DVB_LGS8GL5_MODULE) && defined(MODULE))
35extern struct dvb_frontend *lgs8gl5_attach( 35extern struct dvb_frontend *lgs8gl5_attach(
36 const struct lgs8gl5_config *config, struct i2c_adapter *i2c); 36 const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
37#else 37#else
diff --git a/drivers/media/dvb-frontends/lgs8gxx.h b/drivers/media/dvb-frontends/lgs8gxx.h
index 33c3c5e162fa..dadb78bf61a9 100644
--- a/drivers/media/dvb-frontends/lgs8gxx.h
+++ b/drivers/media/dvb-frontends/lgs8gxx.h
@@ -26,6 +26,7 @@
26#ifndef __LGS8GXX_H__ 26#ifndef __LGS8GXX_H__
27#define __LGS8GXX_H__ 27#define __LGS8GXX_H__
28 28
29#include <linux/kconfig.h>
29#include <linux/dvb/frontend.h> 30#include <linux/dvb/frontend.h>
30#include <linux/i2c.h> 31#include <linux/i2c.h>
31 32
@@ -79,8 +80,7 @@ struct lgs8gxx_config {
79 u8 tuner_address; 80 u8 tuner_address;
80}; 81};
81 82
82#if defined(CONFIG_DVB_LGS8GXX) || \ 83#if IS_ENABLED(CONFIG_DVB_LGS8GXX)
83 (defined(CONFIG_DVB_LGS8GXX_MODULE) && defined(MODULE))
84extern struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config, 84extern struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config,
85 struct i2c_adapter *i2c); 85 struct i2c_adapter *i2c);
86#else 86#else
diff --git a/drivers/media/dvb-frontends/lnbh24.h b/drivers/media/dvb-frontends/lnbh24.h
index c059b165318f..b327a4f31d16 100644
--- a/drivers/media/dvb-frontends/lnbh24.h
+++ b/drivers/media/dvb-frontends/lnbh24.h
@@ -23,6 +23,8 @@
23#ifndef _LNBH24_H 23#ifndef _LNBH24_H
24#define _LNBH24_H 24#define _LNBH24_H
25 25
26#include <linux/kconfig.h>
27
26/* system register bits */ 28/* system register bits */
27#define LNBH24_OLF 0x01 29#define LNBH24_OLF 0x01
28#define LNBH24_OTF 0x02 30#define LNBH24_OTF 0x02
@@ -35,8 +37,7 @@
35 37
36#include <linux/dvb/frontend.h> 38#include <linux/dvb/frontend.h>
37 39
38#if defined(CONFIG_DVB_LNBP21) || (defined(CONFIG_DVB_LNBP21_MODULE) \ 40#if IS_ENABLED(CONFIG_DVB_LNBP21)
39 && defined(MODULE))
40/* override_set and override_clear control which 41/* override_set and override_clear control which
41 system register bits (above) to always set & clear */ 42 system register bits (above) to always set & clear */
42extern struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe, 43extern struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
diff --git a/drivers/media/dvb-frontends/lnbp21.h b/drivers/media/dvb-frontends/lnbp21.h
index fcdf1c650dde..dbcbcc2f20a3 100644
--- a/drivers/media/dvb-frontends/lnbp21.h
+++ b/drivers/media/dvb-frontends/lnbp21.h
@@ -27,6 +27,8 @@
27#ifndef _LNBP21_H 27#ifndef _LNBP21_H
28#define _LNBP21_H 28#define _LNBP21_H
29 29
30#include <linux/kconfig.h>
31
30/* system register bits */ 32/* system register bits */
31/* [RO] 0=OK; 1=over current limit flag */ 33/* [RO] 0=OK; 1=over current limit flag */
32#define LNBP21_OLF 0x01 34#define LNBP21_OLF 0x01
@@ -55,8 +57,7 @@
55 57
56#include <linux/dvb/frontend.h> 58#include <linux/dvb/frontend.h>
57 59
58#if defined(CONFIG_DVB_LNBP21) || (defined(CONFIG_DVB_LNBP21_MODULE) \ 60#if IS_ENABLED(CONFIG_DVB_LNBP21)
59 && defined(MODULE))
60/* override_set and override_clear control which 61/* override_set and override_clear control which
61 system register bits (above) to always set & clear */ 62 system register bits (above) to always set & clear */
62extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, 63extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe,
diff --git a/drivers/media/dvb-frontends/lnbp22.h b/drivers/media/dvb-frontends/lnbp22.h
index 63e2dec7e68a..63861b311dd8 100644
--- a/drivers/media/dvb-frontends/lnbp22.h
+++ b/drivers/media/dvb-frontends/lnbp22.h
@@ -28,6 +28,8 @@
28#ifndef _LNBP22_H 28#ifndef _LNBP22_H
29#define _LNBP22_H 29#define _LNBP22_H
30 30
31#include <linux/kconfig.h>
32
31/* Enable */ 33/* Enable */
32#define LNBP22_EN 0x10 34#define LNBP22_EN 0x10
33/* Voltage selection */ 35/* Voltage selection */
@@ -37,8 +39,7 @@
37 39
38#include <linux/dvb/frontend.h> 40#include <linux/dvb/frontend.h>
39 41
40#if defined(CONFIG_DVB_LNBP22) || \ 42#if IS_ENABLED(CONFIG_DVB_LNBP22)
41 (defined(CONFIG_DVB_LNBP22_MODULE) && defined(MODULE))
42/* 43/*
43 * override_set and override_clear control which system register bits (above) 44 * override_set and override_clear control which system register bits (above)
44 * to always set & clear 45 * to always set & clear
diff --git a/drivers/media/dvb-frontends/m88rs2000.h b/drivers/media/dvb-frontends/m88rs2000.h
index 5a8023e5a4b8..14ce31e76ae6 100644
--- a/drivers/media/dvb-frontends/m88rs2000.h
+++ b/drivers/media/dvb-frontends/m88rs2000.h
@@ -20,6 +20,7 @@
20#ifndef M88RS2000_H 20#ifndef M88RS2000_H
21#define M88RS2000_H 21#define M88RS2000_H
22 22
23#include <linux/kconfig.h>
23#include <linux/dvb/frontend.h> 24#include <linux/dvb/frontend.h>
24#include "dvb_frontend.h" 25#include "dvb_frontend.h"
25 26
@@ -40,8 +41,7 @@ enum {
40 CALL_IS_READ, 41 CALL_IS_READ,
41}; 42};
42 43
43#if defined(CONFIG_DVB_M88RS2000) || (defined(CONFIG_DVB_M88RS2000_MODULE) && \ 44#if IS_ENABLED(CONFIG_DVB_M88RS2000)
44 defined(MODULE))
45extern struct dvb_frontend *m88rs2000_attach( 45extern struct dvb_frontend *m88rs2000_attach(
46 const struct m88rs2000_config *config, struct i2c_adapter *i2c); 46 const struct m88rs2000_config *config, struct i2c_adapter *i2c);
47#else 47#else
diff --git a/drivers/media/dvb-frontends/mb86a20s.h b/drivers/media/dvb-frontends/mb86a20s.h
index 1a7dea2b237a..6627a3976087 100644
--- a/drivers/media/dvb-frontends/mb86a20s.h
+++ b/drivers/media/dvb-frontends/mb86a20s.h
@@ -16,6 +16,7 @@
16#ifndef MB86A20S_H 16#ifndef MB86A20S_H
17#define MB86A20S_H 17#define MB86A20S_H
18 18
19#include <linux/kconfig.h>
19#include <linux/dvb/frontend.h> 20#include <linux/dvb/frontend.h>
20 21
21/** 22/**
@@ -33,8 +34,7 @@ struct mb86a20s_config {
33 bool is_serial; 34 bool is_serial;
34}; 35};
35 36
36#if defined(CONFIG_DVB_MB86A20S) || (defined(CONFIG_DVB_MB86A20S_MODULE) \ 37#if IS_ENABLED(CONFIG_DVB_MB86A20S)
37 && defined(MODULE))
38extern struct dvb_frontend *mb86a20s_attach(const struct mb86a20s_config *config, 38extern struct dvb_frontend *mb86a20s_attach(const struct mb86a20s_config *config,
39 struct i2c_adapter *i2c); 39 struct i2c_adapter *i2c);
40extern struct i2c_adapter *mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *); 40extern struct i2c_adapter *mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *);
diff --git a/drivers/media/dvb-frontends/rtl2830.h b/drivers/media/dvb-frontends/rtl2830.h
index f4349a1fc03e..3313847fb0be 100644
--- a/drivers/media/dvb-frontends/rtl2830.h
+++ b/drivers/media/dvb-frontends/rtl2830.h
@@ -21,6 +21,7 @@
21#ifndef RTL2830_H 21#ifndef RTL2830_H
22#define RTL2830_H 22#define RTL2830_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25 26
26struct rtl2830_config { 27struct rtl2830_config {
@@ -59,8 +60,7 @@ struct rtl2830_config {
59 u8 agc_targ_val; 60 u8 agc_targ_val;
60}; 61};
61 62
62#if defined(CONFIG_DVB_RTL2830) || \ 63#if IS_ENABLED(CONFIG_DVB_RTL2830)
63 (defined(CONFIG_DVB_RTL2830_MODULE) && defined(MODULE))
64extern struct dvb_frontend *rtl2830_attach( 64extern struct dvb_frontend *rtl2830_attach(
65 const struct rtl2830_config *config, 65 const struct rtl2830_config *config,
66 struct i2c_adapter *i2c 66 struct i2c_adapter *i2c
diff --git a/drivers/media/dvb-frontends/rtl2832.h b/drivers/media/dvb-frontends/rtl2832.h
index 785a466eb065..fefba0e9ba30 100644
--- a/drivers/media/dvb-frontends/rtl2832.h
+++ b/drivers/media/dvb-frontends/rtl2832.h
@@ -21,6 +21,7 @@
21#ifndef RTL2832_H 21#ifndef RTL2832_H
22#define RTL2832_H 22#define RTL2832_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25 26
26struct rtl2832_config { 27struct rtl2832_config {
@@ -54,8 +55,7 @@ struct rtl2832_config {
54 u8 tuner; 55 u8 tuner;
55}; 56};
56 57
57#if defined(CONFIG_DVB_RTL2832) || \ 58#if IS_ENABLED(CONFIG_DVB_RTL2832)
58 (defined(CONFIG_DVB_RTL2832_MODULE) && defined(MODULE))
59extern struct dvb_frontend *rtl2832_attach( 59extern struct dvb_frontend *rtl2832_attach(
60 const struct rtl2832_config *cfg, 60 const struct rtl2832_config *cfg,
61 struct i2c_adapter *i2c 61 struct i2c_adapter *i2c
diff --git a/drivers/media/dvb-frontends/s5h1409.h b/drivers/media/dvb-frontends/s5h1409.h
index 91f2ebd1a534..63b1e0a34e4e 100644
--- a/drivers/media/dvb-frontends/s5h1409.h
+++ b/drivers/media/dvb-frontends/s5h1409.h
@@ -22,6 +22,7 @@
22#ifndef __S5H1409_H__ 22#ifndef __S5H1409_H__
23#define __S5H1409_H__ 23#define __S5H1409_H__
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27struct s5h1409_config { 28struct s5h1409_config {
@@ -66,8 +67,7 @@ struct s5h1409_config {
66 u8 hvr1600_opt; 67 u8 hvr1600_opt;
67}; 68};
68 69
69#if defined(CONFIG_DVB_S5H1409) || (defined(CONFIG_DVB_S5H1409_MODULE) \ 70#if IS_ENABLED(CONFIG_DVB_S5H1409)
70 && defined(MODULE))
71extern struct dvb_frontend *s5h1409_attach(const struct s5h1409_config *config, 71extern struct dvb_frontend *s5h1409_attach(const struct s5h1409_config *config,
72 struct i2c_adapter *i2c); 72 struct i2c_adapter *i2c);
73#else 73#else
diff --git a/drivers/media/dvb-frontends/s5h1411.h b/drivers/media/dvb-frontends/s5h1411.h
index 45ec0f82989c..e4f56871f982 100644
--- a/drivers/media/dvb-frontends/s5h1411.h
+++ b/drivers/media/dvb-frontends/s5h1411.h
@@ -22,6 +22,7 @@
22#ifndef __S5H1411_H__ 22#ifndef __S5H1411_H__
23#define __S5H1411_H__ 23#define __S5H1411_H__
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27#define S5H1411_I2C_TOP_ADDR (0x32 >> 1) 28#define S5H1411_I2C_TOP_ADDR (0x32 >> 1)
@@ -68,8 +69,7 @@ struct s5h1411_config {
68 u8 status_mode; 69 u8 status_mode;
69}; 70};
70 71
71#if defined(CONFIG_DVB_S5H1411) || \ 72#if IS_ENABLED(CONFIG_DVB_S5H1411)
72 (defined(CONFIG_DVB_S5H1411_MODULE) && defined(MODULE))
73extern struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config, 73extern struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config,
74 struct i2c_adapter *i2c); 74 struct i2c_adapter *i2c);
75#else 75#else
diff --git a/drivers/media/dvb-frontends/s5h1432.h b/drivers/media/dvb-frontends/s5h1432.h
index b57438c32546..70917dd2533a 100644
--- a/drivers/media/dvb-frontends/s5h1432.h
+++ b/drivers/media/dvb-frontends/s5h1432.h
@@ -22,6 +22,7 @@
22#ifndef __S5H1432_H__ 22#ifndef __S5H1432_H__
23#define __S5H1432_H__ 23#define __S5H1432_H__
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27#define S5H1432_I2C_TOP_ADDR (0x02 >> 1) 28#define S5H1432_I2C_TOP_ADDR (0x02 >> 1)
@@ -74,8 +75,7 @@ struct s5h1432_config {
74 u8 status_mode; 75 u8 status_mode;
75}; 76};
76 77
77#if defined(CONFIG_DVB_S5H1432) || \ 78#if IS_ENABLED(CONFIG_DVB_S5H1432)
78 (defined(CONFIG_DVB_S5H1432_MODULE) && defined(MODULE))
79extern struct dvb_frontend *s5h1432_attach(const struct s5h1432_config *config, 79extern struct dvb_frontend *s5h1432_attach(const struct s5h1432_config *config,
80 struct i2c_adapter *i2c); 80 struct i2c_adapter *i2c);
81#else 81#else
diff --git a/drivers/media/dvb-frontends/s921.h b/drivers/media/dvb-frontends/s921.h
index f220d8299c81..8d5e2a6e187c 100644
--- a/drivers/media/dvb-frontends/s921.h
+++ b/drivers/media/dvb-frontends/s921.h
@@ -17,6 +17,7 @@
17#ifndef S921_H 17#ifndef S921_H
18#define S921_H 18#define S921_H
19 19
20#include <linux/kconfig.h>
20#include <linux/dvb/frontend.h> 21#include <linux/dvb/frontend.h>
21 22
22struct s921_config { 23struct s921_config {
@@ -24,8 +25,7 @@ struct s921_config {
24 u8 demod_address; 25 u8 demod_address;
25}; 26};
26 27
27#if defined(CONFIG_DVB_S921) || (defined(CONFIG_DVB_S921_MODULE) \ 28#if IS_ENABLED(CONFIG_DVB_S921)
28 && defined(MODULE))
29extern struct dvb_frontend *s921_attach(const struct s921_config *config, 29extern struct dvb_frontend *s921_attach(const struct s921_config *config,
30 struct i2c_adapter *i2c); 30 struct i2c_adapter *i2c);
31extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *); 31extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
diff --git a/drivers/media/dvb-frontends/si21xx.h b/drivers/media/dvb-frontends/si21xx.h
index 141b5b8a5f63..1509fed44a3a 100644
--- a/drivers/media/dvb-frontends/si21xx.h
+++ b/drivers/media/dvb-frontends/si21xx.h
@@ -1,6 +1,7 @@
1#ifndef SI21XX_H 1#ifndef SI21XX_H
2#define SI21XX_H 2#define SI21XX_H
3 3
4#include <linux/kconfig.h>
4#include <linux/dvb/frontend.h> 5#include <linux/dvb/frontend.h>
5#include "dvb_frontend.h" 6#include "dvb_frontend.h"
6 7
@@ -12,8 +13,7 @@ struct si21xx_config {
12 int min_delay_ms; 13 int min_delay_ms;
13}; 14};
14 15
15#if defined(CONFIG_DVB_SI21XX) || \ 16#if IS_ENABLED(CONFIG_DVB_SI21XX)
16 (defined(CONFIG_DVB_SI21XX_MODULE) && defined(MODULE))
17extern struct dvb_frontend *si21xx_attach(const struct si21xx_config *config, 17extern struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,
18 struct i2c_adapter *i2c); 18 struct i2c_adapter *i2c);
19#else 19#else
diff --git a/drivers/media/dvb-frontends/stb6000.h b/drivers/media/dvb-frontends/stb6000.h
index 7be479c22d5b..a768189bfaad 100644
--- a/drivers/media/dvb-frontends/stb6000.h
+++ b/drivers/media/dvb-frontends/stb6000.h
@@ -23,6 +23,7 @@
23#ifndef __DVB_STB6000_H__ 23#ifndef __DVB_STB6000_H__
24#define __DVB_STB6000_H__ 24#define __DVB_STB6000_H__
25 25
26#include <linux/kconfig.h>
26#include <linux/i2c.h> 27#include <linux/i2c.h>
27#include "dvb_frontend.h" 28#include "dvb_frontend.h"
28 29
@@ -34,8 +35,7 @@
34 * @param i2c i2c adapter to use. 35 * @param i2c i2c adapter to use.
35 * @return FE pointer on success, NULL on failure. 36 * @return FE pointer on success, NULL on failure.
36 */ 37 */
37#if defined(CONFIG_DVB_STB6000) || (defined(CONFIG_DVB_STB6000_MODULE) \ 38#if IS_ENABLED(CONFIG_DVB_STB6000)
38 && defined(MODULE))
39extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr, 39extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
40 struct i2c_adapter *i2c); 40 struct i2c_adapter *i2c);
41#else 41#else
diff --git a/drivers/media/dvb-frontends/stv0288.h b/drivers/media/dvb-frontends/stv0288.h
index f2b53db0606d..a0bd93107154 100644
--- a/drivers/media/dvb-frontends/stv0288.h
+++ b/drivers/media/dvb-frontends/stv0288.h
@@ -27,6 +27,7 @@
27#ifndef STV0288_H 27#ifndef STV0288_H
28#define STV0288_H 28#define STV0288_H
29 29
30#include <linux/kconfig.h>
30#include <linux/dvb/frontend.h> 31#include <linux/dvb/frontend.h>
31#include "dvb_frontend.h" 32#include "dvb_frontend.h"
32 33
@@ -42,8 +43,7 @@ struct stv0288_config {
42 int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured); 43 int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
43}; 44};
44 45
45#if defined(CONFIG_DVB_STV0288) || (defined(CONFIG_DVB_STV0288_MODULE) && \ 46#if IS_ENABLED(CONFIG_DVB_STV0288)
46 defined(MODULE))
47extern struct dvb_frontend *stv0288_attach(const struct stv0288_config *config, 47extern struct dvb_frontend *stv0288_attach(const struct stv0288_config *config,
48 struct i2c_adapter *i2c); 48 struct i2c_adapter *i2c);
49#else 49#else
diff --git a/drivers/media/dvb-frontends/stv0367.h b/drivers/media/dvb-frontends/stv0367.h
index 93cc4a57eea0..ea80b341f094 100644
--- a/drivers/media/dvb-frontends/stv0367.h
+++ b/drivers/media/dvb-frontends/stv0367.h
@@ -26,6 +26,7 @@
26#ifndef STV0367_H 26#ifndef STV0367_H
27#define STV0367_H 27#define STV0367_H
28 28
29#include <linux/kconfig.h>
29#include <linux/dvb/frontend.h> 30#include <linux/dvb/frontend.h>
30#include "dvb_frontend.h" 31#include "dvb_frontend.h"
31 32
@@ -38,8 +39,7 @@ struct stv0367_config {
38 int clk_pol; 39 int clk_pol;
39}; 40};
40 41
41#if defined(CONFIG_DVB_STV0367) || (defined(CONFIG_DVB_STV0367_MODULE) \ 42#if IS_ENABLED(CONFIG_DVB_STV0367)
42 && defined(MODULE))
43extern struct 43extern struct
44dvb_frontend *stv0367ter_attach(const struct stv0367_config *config, 44dvb_frontend *stv0367ter_attach(const struct stv0367_config *config,
45 struct i2c_adapter *i2c); 45 struct i2c_adapter *i2c);
diff --git a/drivers/media/dvb-frontends/stv0900.h b/drivers/media/dvb-frontends/stv0900.h
index 91c7ee8b2313..e2a6dc69ecb4 100644
--- a/drivers/media/dvb-frontends/stv0900.h
+++ b/drivers/media/dvb-frontends/stv0900.h
@@ -26,6 +26,7 @@
26#ifndef STV0900_H 26#ifndef STV0900_H
27#define STV0900_H 27#define STV0900_H
28 28
29#include <linux/kconfig.h>
29#include <linux/dvb/frontend.h> 30#include <linux/dvb/frontend.h>
30#include "dvb_frontend.h" 31#include "dvb_frontend.h"
31 32
@@ -57,8 +58,7 @@ struct stv0900_config {
57 void (*set_lock_led)(struct dvb_frontend *fe, int offon); 58 void (*set_lock_led)(struct dvb_frontend *fe, int offon);
58}; 59};
59 60
60#if defined(CONFIG_DVB_STV0900) || (defined(CONFIG_DVB_STV0900_MODULE) \ 61#if IS_ENABLED(CONFIG_DVB_STV0900)
61 && defined(MODULE))
62extern struct dvb_frontend *stv0900_attach(const struct stv0900_config *config, 62extern struct dvb_frontend *stv0900_attach(const struct stv0900_config *config,
63 struct i2c_adapter *i2c, int demod); 63 struct i2c_adapter *i2c, int demod);
64#else 64#else
diff --git a/drivers/media/dvb-frontends/stv6110.h b/drivers/media/dvb-frontends/stv6110.h
index fe71bba6a26e..8fa07e6a6745 100644
--- a/drivers/media/dvb-frontends/stv6110.h
+++ b/drivers/media/dvb-frontends/stv6110.h
@@ -25,6 +25,7 @@
25#ifndef __DVB_STV6110_H__ 25#ifndef __DVB_STV6110_H__
26#define __DVB_STV6110_H__ 26#define __DVB_STV6110_H__
27 27
28#include <linux/kconfig.h>
28#include <linux/i2c.h> 29#include <linux/i2c.h>
29#include "dvb_frontend.h" 30#include "dvb_frontend.h"
30 31
@@ -45,8 +46,7 @@ struct stv6110_config {
45 u8 clk_div; /* divisor value for the output clock */ 46 u8 clk_div; /* divisor value for the output clock */
46}; 47};
47 48
48#if defined(CONFIG_DVB_STV6110) || (defined(CONFIG_DVB_STV6110_MODULE) \ 49#if IS_ENABLED(CONFIG_DVB_STV6110)
49 && defined(MODULE))
50extern struct dvb_frontend *stv6110_attach(struct dvb_frontend *fe, 50extern struct dvb_frontend *stv6110_attach(struct dvb_frontend *fe,
51 const struct stv6110_config *config, 51 const struct stv6110_config *config,
52 struct i2c_adapter *i2c); 52 struct i2c_adapter *i2c);
diff --git a/drivers/media/dvb-frontends/tda10048.h b/drivers/media/dvb-frontends/tda10048.h
index fb2ef5ac9487..5e7bf4e47cb3 100644
--- a/drivers/media/dvb-frontends/tda10048.h
+++ b/drivers/media/dvb-frontends/tda10048.h
@@ -22,6 +22,7 @@
22#ifndef TDA10048_H 22#ifndef TDA10048_H
23#define TDA10048_H 23#define TDA10048_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26#include <linux/firmware.h> 27#include <linux/firmware.h>
27 28
@@ -72,8 +73,7 @@ struct tda10048_config {
72 u8 pll_n; 73 u8 pll_n;
73}; 74};
74 75
75#if defined(CONFIG_DVB_TDA10048) || \ 76#if IS_ENABLED(CONFIG_DVB_TDA10048)
76 (defined(CONFIG_DVB_TDA10048_MODULE) && defined(MODULE))
77extern struct dvb_frontend *tda10048_attach( 77extern struct dvb_frontend *tda10048_attach(
78 const struct tda10048_config *config, 78 const struct tda10048_config *config,
79 struct i2c_adapter *i2c); 79 struct i2c_adapter *i2c);
diff --git a/drivers/media/dvb-frontends/tda10071.h b/drivers/media/dvb-frontends/tda10071.h
index bff1c38df802..f9542f68fe78 100644
--- a/drivers/media/dvb-frontends/tda10071.h
+++ b/drivers/media/dvb-frontends/tda10071.h
@@ -21,6 +21,7 @@
21#ifndef TDA10071_H 21#ifndef TDA10071_H
22#define TDA10071_H 22#define TDA10071_H
23 23
24#include <linux/kconfig.h>
24#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
25 26
26struct tda10071_config { 27struct tda10071_config {
@@ -71,8 +72,7 @@ struct tda10071_config {
71}; 72};
72 73
73 74
74#if defined(CONFIG_DVB_TDA10071) || \ 75#if IS_ENABLED(CONFIG_DVB_TDA10071)
75 (defined(CONFIG_DVB_TDA10071_MODULE) && defined(MODULE))
76extern struct dvb_frontend *tda10071_attach( 76extern struct dvb_frontend *tda10071_attach(
77 const struct tda10071_config *config, struct i2c_adapter *i2c); 77 const struct tda10071_config *config, struct i2c_adapter *i2c);
78#else 78#else
diff --git a/drivers/media/dvb-frontends/tda18271c2dd.h b/drivers/media/dvb-frontends/tda18271c2dd.h
index 1389c74e12ce..dd84f7b69bec 100644
--- a/drivers/media/dvb-frontends/tda18271c2dd.h
+++ b/drivers/media/dvb-frontends/tda18271c2dd.h
@@ -1,7 +1,9 @@
1#ifndef _TDA18271C2DD_H_ 1#ifndef _TDA18271C2DD_H_
2#define _TDA18271C2DD_H_ 2#define _TDA18271C2DD_H_
3#if defined(CONFIG_DVB_TDA18271C2DD) || (defined(CONFIG_DVB_TDA18271C2DD_MODULE) \ 3
4 && defined(MODULE)) 4#include <linux/kconfig.h>
5
6#if IS_ENABLED(CONFIG_DVB_TDA18271C2DD)
5struct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe, 7struct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe,
6 struct i2c_adapter *i2c, u8 adr); 8 struct i2c_adapter *i2c, u8 adr);
7#else 9#else
diff --git a/drivers/media/dvb-frontends/ts2020.h b/drivers/media/dvb-frontends/ts2020.h
index c7e64afa614a..5bcb9a71ca80 100644
--- a/drivers/media/dvb-frontends/ts2020.h
+++ b/drivers/media/dvb-frontends/ts2020.h
@@ -22,6 +22,7 @@
22#ifndef TS2020_H 22#ifndef TS2020_H
23#define TS2020_H 23#define TS2020_H
24 24
25#include <linux/kconfig.h>
25#include <linux/dvb/frontend.h> 26#include <linux/dvb/frontend.h>
26 27
27struct ts2020_config { 28struct ts2020_config {
@@ -29,8 +30,7 @@ struct ts2020_config {
29 u8 clk_out_div; 30 u8 clk_out_div;
30}; 31};
31 32
32#if defined(CONFIG_DVB_TS2020) || \ 33#if IS_ENABLED(CONFIG_DVB_TS2020)
33 (defined(CONFIG_DVB_TS2020_MODULE) && defined(MODULE))
34 34
35extern struct dvb_frontend *ts2020_attach( 35extern struct dvb_frontend *ts2020_attach(
36 struct dvb_frontend *fe, 36 struct dvb_frontend *fe,
diff --git a/drivers/media/dvb-frontends/zl10036.h b/drivers/media/dvb-frontends/zl10036.h
index d84b8f8215e9..5f1e8217eeb6 100644
--- a/drivers/media/dvb-frontends/zl10036.h
+++ b/drivers/media/dvb-frontends/zl10036.h
@@ -21,6 +21,7 @@
21#ifndef DVB_ZL10036_H 21#ifndef DVB_ZL10036_H
22#define DVB_ZL10036_H 22#define DVB_ZL10036_H
23 23
24#include <linux/kconfig.h>
24#include <linux/i2c.h> 25#include <linux/i2c.h>
25#include "dvb_frontend.h" 26#include "dvb_frontend.h"
26 27
@@ -37,8 +38,7 @@ struct zl10036_config {
37 int rf_loop_enable; 38 int rf_loop_enable;
38}; 39};
39 40
40#if defined(CONFIG_DVB_ZL10036) || \ 41#if IS_ENABLED(CONFIG_DVB_ZL10036)
41 (defined(CONFIG_DVB_ZL10036_MODULE) && defined(MODULE))
42extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe, 42extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
43 const struct zl10036_config *config, struct i2c_adapter *i2c); 43 const struct zl10036_config *config, struct i2c_adapter *i2c);
44#else 44#else
diff --git a/drivers/media/dvb-frontends/zl10039.h b/drivers/media/dvb-frontends/zl10039.h
index 5eee7ea162a1..750b9bca9d02 100644
--- a/drivers/media/dvb-frontends/zl10039.h
+++ b/drivers/media/dvb-frontends/zl10039.h
@@ -22,8 +22,9 @@
22#ifndef ZL10039_H 22#ifndef ZL10039_H
23#define ZL10039_H 23#define ZL10039_H
24 24
25#if defined(CONFIG_DVB_ZL10039) || (defined(CONFIG_DVB_ZL10039_MODULE) \ 25#include <linux/kconfig.h>
26 && defined(MODULE)) 26
27#if IS_ENABLED(CONFIG_DVB_ZL10039)
27struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe, 28struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
28 u8 i2c_addr, 29 u8 i2c_addr,
29 struct i2c_adapter *i2c); 30 struct i2c_adapter *i2c);