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/max2165.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/max2165.h')
-rw-r--r-- | drivers/media/tuners/max2165.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/tuners/max2165.h b/drivers/media/tuners/max2165.h index c063c36a93d3..26e1dc64bb67 100644 --- a/drivers/media/tuners/max2165.h +++ b/drivers/media/tuners/max2165.h | |||
@@ -22,6 +22,8 @@ | |||
22 | #ifndef __MAX2165_H__ | 22 | #ifndef __MAX2165_H__ |
23 | #define __MAX2165_H__ | 23 | #define __MAX2165_H__ |
24 | 24 | ||
25 | #include <linux/kconfig.h> | ||
26 | |||
25 | struct dvb_frontend; | 27 | struct dvb_frontend; |
26 | struct i2c_adapter; | 28 | struct i2c_adapter; |
27 | 29 | ||
@@ -30,8 +32,7 @@ struct max2165_config { | |||
30 | u8 osc_clk; /* in MHz, selectable values: 4,16,18,20,22,24,26,28 */ | 32 | u8 osc_clk; /* in MHz, selectable values: 4,16,18,20,22,24,26,28 */ |
31 | }; | 33 | }; |
32 | 34 | ||
33 | #if defined(CONFIG_MEDIA_TUNER_MAX2165) || \ | 35 | #if IS_ENABLED(CONFIG_MEDIA_TUNER_MAX2165) |
34 | (defined(CONFIG_MEDIA_TUNER_MAX2165_MODULE) && defined(MODULE)) | ||
35 | extern struct dvb_frontend *max2165_attach(struct dvb_frontend *fe, | 36 | extern struct dvb_frontend *max2165_attach(struct dvb_frontend *fe, |
36 | struct i2c_adapter *i2c, | 37 | struct i2c_adapter *i2c, |
37 | struct max2165_config *cfg); | 38 | struct max2165_config *cfg); |