aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/tda18218.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 15:24:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-23 08:22:06 -0400
commit9dc353c67cbe3150d3a6b293662d5a33028adec4 (patch)
tree5b5ec2847eeb5244692365f2e54e649fc41f87d4 /drivers/media/tuners/tda18218.h
parent782d8b743aad7dfffa4c01e9e8b57fd35247d70a (diff)
[media] tuners: 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/tuners/tda18218.h')
-rw-r--r--drivers/media/tuners/tda18218.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/tda18218.h b/drivers/media/tuners/tda18218.h
index b4180d180029..366410e0cc9a 100644
--- a/drivers/media/tuners/tda18218.h
+++ b/drivers/media/tuners/tda18218.h
@@ -21,6 +21,7 @@
21#ifndef TDA18218_H 21#ifndef TDA18218_H
22#define TDA18218_H 22#define TDA18218_H
23 23
24#include <linux/kconfig.h>
24#include "dvb_frontend.h" 25#include "dvb_frontend.h"
25 26
26struct tda18218_config { 27struct tda18218_config {
@@ -29,8 +30,7 @@ struct tda18218_config {
29 u8 loop_through:1; 30 u8 loop_through:1;
30}; 31};
31 32
32#if defined(CONFIG_MEDIA_TUNER_TDA18218) || \ 33#if IS_ENABLED(CONFIG_MEDIA_TUNER_TDA18218)
33 (defined(CONFIG_MEDIA_TUNER_TDA18218_MODULE) && defined(MODULE))
34extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe, 34extern struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
35 struct i2c_adapter *i2c, struct tda18218_config *cfg); 35 struct i2c_adapter *i2c, struct tda18218_config *cfg);
36#else 36#else