[media] lgdt3306a: Use IS_ENABLED() for attach function
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 12:56:10 +0000 (10:56 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 13:34:12 +0000 (10:34 -0300)
Simplify the check if CONFIG_DVB_LGDT3306A is enabled, use the
IS_ENABLED() macro, just like the other frontend modules.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/lgdt3306a.c
drivers/media/dvb-frontends/lgdt3306a.h

index 99128d2afebb15983aa870fa4653b910899a8127..c8af071ce40ba5c9b5fd8ae2955d2a47839e6163 100644 (file)
@@ -1662,7 +1662,7 @@ static void lgdt3306a_release(struct dvb_frontend *fe)
 static struct dvb_frontend_ops lgdt3306a_ops;
 
 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
-                                    struct i2c_adapter *i2c_adap)
+                                     struct i2c_adapter *i2c_adap)
 {
        struct lgdt3306a_state *state = NULL;
        int ret;
index 9d97df8f0969ee00a30211693fcb18ede5d049a3..9e848b1e506efac232ac427adec85f764916fed6 100644 (file)
@@ -63,15 +63,13 @@ struct lgdt3306a_config {
        int  xtalMHz;
 };
 
-#if defined(CONFIG_DVB_LGDT3306A) || (defined(CONFIG_DVB_LGDT3306A_MODULE) && \
-                                    defined(MODULE))
-extern
+#if IS_ENABLED(CONFIG_DVB_LGDT3306A)
 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
-                                    struct i2c_adapter *i2c_adap);
+                                     struct i2c_adapter *i2c_adap);
 #else
 static inline
 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
-                                    struct i2c_adapter *i2c_adap)
+                                     struct i2c_adapter *i2c_adap)
 {
        printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
        return NULL;