aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-08 14:04:35 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-08 14:05:12 -0400
commit00c78a3728dff798b4c9d5e2d38c86106ff6e8c7 (patch)
treee45b1320976754bc311605f38431215f4862fed5 /drivers/media/dvb-frontends
parent9b174527e7b756cda9f5d9e541f87b7fec9cfdf0 (diff)
dvb-frontends: use IS_REACHABLE() instead of IS_ENABLED()
Changeset 9b174527e7b7 added this new macro, ensuring that it is true only if the function is actually reachable. However, newer drivers were added since when it was written. So, change those drivers to also use it. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/drx39xyj/drx39xxj.h2
-rw-r--r--drivers/media/dvb-frontends/lgdt3306a.h2
-rw-r--r--drivers/media/dvb-frontends/si2165.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h b/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h
index cfd0b96b6939..8188062953af 100644
--- a/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h
+++ b/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h
@@ -34,7 +34,7 @@ struct drx39xxj_state {
34 const struct firmware *fw; 34 const struct firmware *fw;
35}; 35};
36 36
37#if IS_ENABLED(CONFIG_DVB_DRX39XYJ) 37#if IS_REACHABLE(CONFIG_DVB_DRX39XYJ)
38struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c); 38struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c);
39#else 39#else
40static inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) { 40static inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) {
diff --git a/drivers/media/dvb-frontends/lgdt3306a.h b/drivers/media/dvb-frontends/lgdt3306a.h
index ed8aa3e7c950..9dbb2dced1fe 100644
--- a/drivers/media/dvb-frontends/lgdt3306a.h
+++ b/drivers/media/dvb-frontends/lgdt3306a.h
@@ -58,7 +58,7 @@ struct lgdt3306a_config {
58 int xtalMHz; 58 int xtalMHz;
59}; 59};
60 60
61#if IS_ENABLED(CONFIG_DVB_LGDT3306A) 61#if IS_REACHABLE(CONFIG_DVB_LGDT3306A)
62struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config, 62struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
63 struct i2c_adapter *i2c_adap); 63 struct i2c_adapter *i2c_adap);
64#else 64#else
diff --git a/drivers/media/dvb-frontends/si2165.h b/drivers/media/dvb-frontends/si2165.h
index efaa08123b92..8a15d6a9c552 100644
--- a/drivers/media/dvb-frontends/si2165.h
+++ b/drivers/media/dvb-frontends/si2165.h
@@ -45,7 +45,7 @@ struct si2165_config {
45 bool inversion; 45 bool inversion;
46}; 46};
47 47
48#if IS_ENABLED(CONFIG_DVB_SI2165) 48#if IS_REACHABLE(CONFIG_DVB_SI2165)
49struct dvb_frontend *si2165_attach( 49struct dvb_frontend *si2165_attach(
50 const struct si2165_config *config, 50 const struct si2165_config *config,
51 struct i2c_adapter *i2c); 51 struct i2c_adapter *i2c);