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/tua9001.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/tua9001.h')
-rw-r--r-- | drivers/media/tuners/tua9001.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/tua9001.h b/drivers/media/tuners/tua9001.h index cf5b815feff9..26358da1c100 100644 --- a/drivers/media/tuners/tua9001.h +++ b/drivers/media/tuners/tua9001.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #ifndef TUA9001_H | 21 | #ifndef TUA9001_H |
22 | #define TUA9001_H | 22 | #define TUA9001_H |
23 | 23 | ||
24 | #include <linux/kconfig.h> | ||
24 | #include "dvb_frontend.h" | 25 | #include "dvb_frontend.h" |
25 | 26 | ||
26 | struct tua9001_config { | 27 | struct tua9001_config { |
@@ -50,8 +51,7 @@ struct tua9001_config { | |||
50 | #define TUA9001_CMD_RESETN 1 | 51 | #define TUA9001_CMD_RESETN 1 |
51 | #define TUA9001_CMD_RXEN 2 | 52 | #define TUA9001_CMD_RXEN 2 |
52 | 53 | ||
53 | #if defined(CONFIG_MEDIA_TUNER_TUA9001) || \ | 54 | #if IS_ENABLED(CONFIG_MEDIA_TUNER_TUA9001) |
54 | (defined(CONFIG_MEDIA_TUNER_TUA9001_MODULE) && defined(MODULE)) | ||
55 | extern struct dvb_frontend *tua9001_attach(struct dvb_frontend *fe, | 55 | extern struct dvb_frontend *tua9001_attach(struct dvb_frontend *fe, |
56 | struct i2c_adapter *i2c, struct tua9001_config *cfg); | 56 | struct i2c_adapter *i2c, struct tua9001_config *cfg); |
57 | #else | 57 | #else |