[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>
This commit is contained in:
Mauro Carvalho Chehab
2013-03-21 16:24:09 -03:00
parent 782d8b743a
commit 9dc353c67c
12 changed files with 27 additions and 24 deletions

View File

@@ -21,6 +21,7 @@
#ifndef E4000_H
#define E4000_H
#include <linux/kconfig.h>
#include "dvb_frontend.h"
struct e4000_config {
@@ -36,8 +37,7 @@ struct e4000_config {
u32 clock;
};
#if defined(CONFIG_MEDIA_TUNER_E4000) || \
(defined(CONFIG_MEDIA_TUNER_E4000_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_MEDIA_TUNER_E4000)
extern struct dvb_frontend *e4000_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c, const struct e4000_config *cfg);
#else