[media] dvb-frontends: 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:
@@ -26,6 +26,7 @@
|
||||
#ifndef STV0367_H
|
||||
#define STV0367_H
|
||||
|
||||
#include <linux/kconfig.h>
|
||||
#include <linux/dvb/frontend.h>
|
||||
#include "dvb_frontend.h"
|
||||
|
||||
@@ -38,8 +39,7 @@ struct stv0367_config {
|
||||
int clk_pol;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_DVB_STV0367) || (defined(CONFIG_DVB_STV0367_MODULE) \
|
||||
&& defined(MODULE))
|
||||
#if IS_ENABLED(CONFIG_DVB_STV0367)
|
||||
extern struct
|
||||
dvb_frontend *stv0367ter_attach(const struct stv0367_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
|
Reference in New Issue
Block a user