aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 15:29:36 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-23 08:33:30 -0400
commit028c70ff42783509d3a7c7fa0faf900446a2657a (patch)
treead14374463db97d2327a83426b8274ba4ad1246d /drivers/media/usb
parent1c59390b3b551524d4c8415bd39c9c788705c7c0 (diff)
[media] dvb-usb/dvb-usb-v2: 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/usb')
-rw-r--r--drivers/media/usb/dvb-usb-v2/mxl111sf-demod.h4
-rw-r--r--drivers/media/usb/dvb-usb-v2/mxl111sf-tuner.h5
-rw-r--r--drivers/media/usb/dvb-usb/dibusb-common.c5
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf-demod.h b/drivers/media/usb/dvb-usb-v2/mxl111sf-demod.h
index 432706ae5274..3f3f8bfd190b 100644
--- a/drivers/media/usb/dvb-usb-v2/mxl111sf-demod.h
+++ b/drivers/media/usb/dvb-usb-v2/mxl111sf-demod.h
@@ -21,6 +21,7 @@
21#ifndef __MXL111SF_DEMOD_H__ 21#ifndef __MXL111SF_DEMOD_H__
22#define __MXL111SF_DEMOD_H__ 22#define __MXL111SF_DEMOD_H__
23 23
24#include <linux/kconfig.h>
24#include "dvb_frontend.h" 25#include "dvb_frontend.h"
25#include "mxl111sf.h" 26#include "mxl111sf.h"
26 27
@@ -31,8 +32,7 @@ struct mxl111sf_demod_config {
31 struct mxl111sf_reg_ctrl_info *ctrl_reg_info); 32 struct mxl111sf_reg_ctrl_info *ctrl_reg_info);
32}; 33};
33 34
34#if defined(CONFIG_DVB_USB_MXL111SF) || \ 35#if IS_ENABLED(CONFIG_DVB_USB_MXL111SF)
35 (defined(CONFIG_DVB_USB_MXL111SF_MODULE) && defined(MODULE))
36extern 36extern
37struct dvb_frontend *mxl111sf_demod_attach(struct mxl111sf_state *mxl_state, 37struct dvb_frontend *mxl111sf_demod_attach(struct mxl111sf_state *mxl_state,
38 struct mxl111sf_demod_config *cfg); 38 struct mxl111sf_demod_config *cfg);
diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf-tuner.h b/drivers/media/usb/dvb-usb-v2/mxl111sf-tuner.h
index ff333960b184..90f583e5d6a6 100644
--- a/drivers/media/usb/dvb-usb-v2/mxl111sf-tuner.h
+++ b/drivers/media/usb/dvb-usb-v2/mxl111sf-tuner.h
@@ -21,8 +21,8 @@
21#ifndef __MXL111SF_TUNER_H__ 21#ifndef __MXL111SF_TUNER_H__
22#define __MXL111SF_TUNER_H__ 22#define __MXL111SF_TUNER_H__
23 23
24#include <linux/kconfig.h>
24#include "dvb_frontend.h" 25#include "dvb_frontend.h"
25
26#include "mxl111sf.h" 26#include "mxl111sf.h"
27 27
28enum mxl_if_freq { 28enum mxl_if_freq {
@@ -60,8 +60,7 @@ struct mxl111sf_tuner_config {
60 60
61/* ------------------------------------------------------------------------ */ 61/* ------------------------------------------------------------------------ */
62 62
63#if defined(CONFIG_DVB_USB_MXL111SF) || \ 63#if IS_ENABLED(CONFIG_DVB_USB_MXL111SF)
64 (defined(CONFIG_DVB_USB_MXL111SF_MODULE) && defined(MODULE))
65extern 64extern
66struct dvb_frontend *mxl111sf_tuner_attach(struct dvb_frontend *fe, 65struct dvb_frontend *mxl111sf_tuner_attach(struct dvb_frontend *fe,
67 struct mxl111sf_state *mxl_state, 66 struct mxl111sf_state *mxl_state,
diff --git a/drivers/media/usb/dvb-usb/dibusb-common.c b/drivers/media/usb/dvb-usb/dibusb-common.c
index af0d4321845b..c2dded92f1d3 100644
--- a/drivers/media/usb/dvb-usb/dibusb-common.c
+++ b/drivers/media/usb/dvb-usb/dibusb-common.c
@@ -8,6 +8,8 @@
8 * 8 *
9 * see Documentation/dvb/README.dvb-usb for more information 9 * see Documentation/dvb/README.dvb-usb for more information
10 */ 10 */
11
12#include <linux/kconfig.h>
11#include "dibusb.h" 13#include "dibusb.h"
12 14
13static int debug; 15static int debug;
@@ -232,8 +234,7 @@ static struct dibx000_agc_config dib3000p_panasonic_agc_config = {
232 .agc2_slope2 = 0x1e, 234 .agc2_slope2 = 0x1e,
233}; 235};
234 236
235#if defined(CONFIG_DVB_DIB3000MC) || \ 237#if IS_ENABLED(CONFIG_DVB_DIB3000MC)
236 (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE))
237 238
238static struct dib3000mc_config mod3000p_dib3000p_config = { 239static struct dib3000mc_config mod3000p_dib3000p_config = {
239 &dib3000p_panasonic_agc_config, 240 &dib3000p_panasonic_agc_config,