Skip to content

Commit

Permalink
dvb-frontends: use IS_REACHABLE() instead of IS_ENABLED()
Browse files Browse the repository at this point in the history
Changeset 9b17452 added this new macro, ensuring that it
is true only if the function is actually reachable.

However, newer drivers were added since when it was written.
So, change those drivers to also use it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 8, 2015
1 parent 9b17452 commit 00c78a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/drx39xyj/drx39xxj.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct drx39xxj_state {
const struct firmware *fw;
};

#if IS_ENABLED(CONFIG_DVB_DRX39XYJ)
#if IS_REACHABLE(CONFIG_DVB_DRX39XYJ)
struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lgdt3306a.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct lgdt3306a_config {
int xtalMHz;
};

#if IS_ENABLED(CONFIG_DVB_LGDT3306A)
#if IS_REACHABLE(CONFIG_DVB_LGDT3306A)
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/si2165.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct si2165_config {
bool inversion;
};

#if IS_ENABLED(CONFIG_DVB_SI2165)
#if IS_REACHABLE(CONFIG_DVB_SI2165)
struct dvb_frontend *si2165_attach(
const struct si2165_config *config,
struct i2c_adapter *i2c);
Expand Down

0 comments on commit 00c78a3

Please sign in to comment.