diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 15:11:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-23 08:03:59 -0400 |
commit | 782d8b743aad7dfffa4c01e9e8b57fd35247d70a (patch) | |
tree | f5ac388982dc40592ff8da91f94f3b6fe69a152c /drivers/media/dvb-frontends/rtl2830.h | |
parent | 54d80904b4c1f7aa1d569d07ca3e62fba0daf3a2 (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/rtl2830.h')
-rw-r--r-- | drivers/media/dvb-frontends/rtl2830.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
26 | struct rtl2830_config { | 27 | struct 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)) | ||
64 | extern struct dvb_frontend *rtl2830_attach( | 64 | extern 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 |