Commit 782d8b74 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] dvb-frontends: 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 54d80904
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,12 +21,13 @@
#ifndef A8293_H
#define A8293_H

#include <linux/kconfig.h>

struct a8293_config {
	u8 i2c_addr;
};

#if defined(CONFIG_DVB_A8293) || \
	(defined(CONFIG_DVB_A8293_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_DVB_A8293)
extern struct dvb_frontend *a8293_attach(struct dvb_frontend *fe,
	struct i2c_adapter *i2c, const struct a8293_config *cfg);
#else
+2 −2
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#ifndef AF9013_H
#define AF9013_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

/* AF9013/5 GPIOs (mostly guessed)
@@ -102,8 +103,7 @@ struct af9013_config {
	u8 gpio[4];
};

#if defined(CONFIG_DVB_AF9013) || \
	(defined(CONFIG_DVB_AF9013_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_DVB_AF9013)
extern struct dvb_frontend *af9013_attach(const struct af9013_config *config,
	struct i2c_adapter *i2c);
#else
+3 −2
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
#ifndef AF9033_H
#define AF9033_H

#include <linux/kconfig.h>

struct af9033_config {
	/*
	 * I2C address
@@ -76,8 +78,7 @@ struct af9033_config {
};


#if defined(CONFIG_DVB_AF9033) || \
	(defined(CONFIG_DVB_AF9033_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_DVB_AF9033)
extern struct dvb_frontend *af9033_attach(const struct af9033_config *config,
	struct i2c_adapter *i2c);
#else
+2 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#ifndef __ATBM8830_H__
#define __ATBM8830_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

@@ -60,8 +61,7 @@ struct atbm8830_config {
	u8 agc_hold_loop;
};

#if defined(CONFIG_DVB_ATBM8830) || \
	(defined(CONFIG_DVB_ATBM8830_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_DVB_ATBM8830)
extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,
		struct i2c_adapter *i2c);
#else
+2 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#ifndef __AU8522_H__
#define __AU8522_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

enum au8522_if_freq {
@@ -60,8 +61,7 @@ struct au8522_config {
	enum au8522_if_freq qam_if;
};

#if defined(CONFIG_DVB_AU8522) || 				\
	    (defined(CONFIG_DVB_AU8522_MODULE) && defined(MODULE))
#if IS_ENABLED(CONFIG_DVB_AU8522)
extern struct dvb_frontend *au8522_attach(const struct au8522_config *config,
					  struct i2c_adapter *i2c);
#else
Loading