summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/xc5000.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2013-03-21 20:24:09 +0100
committerMauro Carvalho Chehab2013-03-23 13:22:06 +0100
commit9dc353c67cbe3150d3a6b293662d5a33028adec4 (patch)
tree5b5ec2847eeb5244692365f2e54e649fc41f87d4 /drivers/media/tuners/xc5000.h
parent[media] dvb-frontends: use IS_ENABLED (diff)
downloadkernel-qcow2-linux-9dc353c67cbe3150d3a6b293662d5a33028adec4.tar.gz
kernel-qcow2-linux-9dc353c67cbe3150d3a6b293662d5a33028adec4.tar.xz
kernel-qcow2-linux-9dc353c67cbe3150d3a6b293662d5a33028adec4.zip
[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/xc5000.h')
-rw-r--r--drivers/media/tuners/xc5000.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/xc5000.h b/drivers/media/tuners/xc5000.h
index b1a547494625..7245cae19f0c 100644
--- a/drivers/media/tuners/xc5000.h
+++ b/drivers/media/tuners/xc5000.h
@@ -22,6 +22,7 @@
#ifndef __XC5000_H__
#define __XC5000_H__
+#include <linux/kconfig.h>
#include <linux/firmware.h>
struct dvb_frontend;
@@ -56,8 +57,7 @@ struct xc5000_config {
* it's passed back to a bridge during tuner_callback().
*/
-#if defined(CONFIG_MEDIA_TUNER_XC5000) || \
- (defined(CONFIG_MEDIA_TUNER_XC5000_MODULE) && defined(MODULE))
+#if IS_ENABLED(CONFIG_MEDIA_TUNER_XC5000)
extern struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct xc5000_config *cfg);