Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dc353c6 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] tuners: use IS_ENABLED



Instead of checking everywhere there for 3 symbols, use instead
IS_ENABLED macro.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 782d8b74
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
#ifndef LINUX_FC0011_H_
#define LINUX_FC0011_H_

#include <linux/kconfig.h>
#include "dvb_frontend.h"


@@ -22,8 +23,7 @@ enum fc0011_fe_callback_commands {
	FC0011_FE_CALLBACK_RESET,
};

#if defined(CONFIG_MEDIA_TUNER_FC0011) ||\
    defined(CONFIG_MEDIA_TUNER_FC0011_MODULE)
#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC0011)
struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
				   struct i2c_adapter *i2c,
				   const struct fc0011_config *config);
+2 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#ifndef _FC0012_H_
#define _FC0012_H_

#include <linux/kconfig.h>
#include "dvb_frontend.h"
#include "fc001x-common.h"

@@ -48,8 +49,7 @@ struct fc0012_config {
	bool clock_out;
};

#if defined(CONFIG_MEDIA_TUNER_FC0012) || \
	(defined(CONFIG_MEDIA_TUNER_FC0012_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC0012)
extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
					struct i2c_adapter *i2c,
					const struct fc0012_config *cfg);
+2 −2
Original line number Diff line number Diff line
@@ -22,11 +22,11 @@
#ifndef _FC0013_H_
#define _FC0013_H_

#include <linux/kconfig.h>
#include "dvb_frontend.h"
#include "fc001x-common.h"

#if defined(CONFIG_MEDIA_TUNER_FC0013) || \
	(defined(CONFIG_MEDIA_TUNER_FC0013_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC0013)
extern struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
					struct i2c_adapter *i2c,
					u8 i2c_address, int dual_master,
+2 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#ifndef FC2580_H
#define FC2580_H

#include <linux/kconfig.h>
#include "dvb_frontend.h"

struct fc2580_config {
@@ -36,8 +37,7 @@ struct fc2580_config {
	u32 clock;
};

#if defined(CONFIG_MEDIA_TUNER_FC2580) || \
	(defined(CONFIG_MEDIA_TUNER_FC2580_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC2580)
extern struct dvb_frontend *fc2580_attach(struct dvb_frontend *fe,
	struct i2c_adapter *i2c, const struct fc2580_config *cfg);
#else
Loading