diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 15:24:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-23 08:22:06 -0400 |
commit | 9dc353c67cbe3150d3a6b293662d5a33028adec4 (patch) | |
tree | 5b5ec2847eeb5244692365f2e54e649fc41f87d4 /drivers/media/tuners/mxl5005s.h | |
parent | 782d8b743aad7dfffa4c01e9e8b57fd35247d70a (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/mxl5005s.h')
-rw-r--r-- | drivers/media/tuners/mxl5005s.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/tuners/mxl5005s.h b/drivers/media/tuners/mxl5005s.h index fc8a1ffc53b4..ae8db885ad87 100644 --- a/drivers/media/tuners/mxl5005s.h +++ b/drivers/media/tuners/mxl5005s.h | |||
@@ -23,6 +23,8 @@ | |||
23 | #ifndef __MXL5005S_H | 23 | #ifndef __MXL5005S_H |
24 | #define __MXL5005S_H | 24 | #define __MXL5005S_H |
25 | 25 | ||
26 | #include <linux/kconfig.h> | ||
27 | |||
26 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
27 | #include "dvb_frontend.h" | 29 | #include "dvb_frontend.h" |
28 | 30 | ||
@@ -116,8 +118,7 @@ struct mxl5005s_config { | |||
116 | u8 AgcMasterByte; | 118 | u8 AgcMasterByte; |
117 | }; | 119 | }; |
118 | 120 | ||
119 | #if defined(CONFIG_MEDIA_TUNER_MXL5005S) || \ | 121 | #if IS_ENABLED(CONFIG_MEDIA_TUNER_MXL5005S) |
120 | (defined(CONFIG_MEDIA_TUNER_MXL5005S_MODULE) && defined(MODULE)) | ||
121 | extern struct dvb_frontend *mxl5005s_attach(struct dvb_frontend *fe, | 122 | extern struct dvb_frontend *mxl5005s_attach(struct dvb_frontend *fe, |
122 | struct i2c_adapter *i2c, | 123 | struct i2c_adapter *i2c, |
123 | struct mxl5005s_config *config); | 124 | struct mxl5005s_config *config); |