Commit c43e6512 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] lgdt3306a: Use IS_ENABLED() for attach function

Simplify the check if CONFIG_DVB_LGDT3306A is enabled, use the
IS_ENABLED() macro, just like the other frontend modules.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4937ba94
...@@ -63,9 +63,7 @@ struct lgdt3306a_config { ...@@ -63,9 +63,7 @@ struct lgdt3306a_config {
int xtalMHz; int xtalMHz;
}; };
#if defined(CONFIG_DVB_LGDT3306A) || (defined(CONFIG_DVB_LGDT3306A_MODULE) && \ #if IS_ENABLED(CONFIG_DVB_LGDT3306A)
defined(MODULE))
extern
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config, struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap); struct i2c_adapter *i2c_adap);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment