[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:
@@ -23,6 +23,7 @@
|
||||
#ifndef LGS8GL5_H
|
||||
#define LGS8GL5_H
|
||||
|
||||
#include <linux/kconfig.h>
|
||||
#include <linux/dvb/frontend.h>
|
||||
|
||||
struct lgs8gl5_config {
|
||||
@@ -30,8 +31,7 @@ struct lgs8gl5_config {
|
||||
u8 demod_address;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_DVB_LGS8GL5) || \
|
||||
(defined(CONFIG_DVB_LGS8GL5_MODULE) && defined(MODULE))
|
||||
#if IS_ENABLED(CONFIG_DVB_LGS8GL5)
|
||||
extern struct dvb_frontend *lgs8gl5_attach(
|
||||
const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user