Skip to content

Commit

Permalink
[media] Add and use IS_REACHABLE macro
Browse files Browse the repository at this point in the history
In the media drivers, the v4l2 core knows about all submodules
and calls into them from a common function. However this cannot
work if the modules that get called are loadable and the
core is built-in. In that case we get

drivers/built-in.o: In function `set_type':
drivers/media/v4l2-core/tuner-core.c:301: undefined reference to `tea5767_attach'
drivers/media/v4l2-core/tuner-core.c:307: undefined reference to `tea5761_attach'
drivers/media/v4l2-core/tuner-core.c:349: undefined reference to `tda9887_attach'
drivers/media/v4l2-core/tuner-core.c:405: undefined reference to `xc4000_attach'

This was working previously, until the IS_ENABLED() macro was used
to replace the construct like

 #if defined(CONFIG_DVB_CX24110) || (defined(CONFIG_DVB_CX24110_MODULE) && defined(MODULE))

with the difference that the new code no longer checks whether it is being
built as a loadable module itself.

To fix this, this new patch adds an 'IS_REACHABLE' macro, which evaluates
true in exactly the condition that was used previously. The downside
of this is that this trades an obvious link error for a more subtle
runtime failure, but it is clear that the change that introduced the
link error was unintentional and it seems better to revert it for
now. Also, a similar change was originally created by Trent Piepho
and then reverted by teh change to the IS_ENABLED macro.

Ideally Kconfig would be used to avoid the case of a broken dependency,
or the code restructured in a way to turn around the dependency, but either
way would require much larger changes here.

Fixes: 7b34be7 ("[media] use IS_ENABLED() macro")
See-also: c5dec9f ("V4L/DVB (4751): Fix DBV_FE_CUSTOMISE for card drivers compiled into kernel")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
arndb authored and mchehab committed Apr 8, 2015
1 parent a87a4d3 commit 9b17452
Show file tree
Hide file tree
Showing 116 changed files with 125 additions and 116 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/a8293.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct a8293_config {
u8 i2c_addr;
};

#if IS_ENABLED(CONFIG_DVB_A8293)
#if IS_REACHABLE(CONFIG_DVB_A8293)
extern struct dvb_frontend *a8293_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c, const struct a8293_config *cfg);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/af9013.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct af9013_config {
u8 gpio[4];
};

#if IS_ENABLED(CONFIG_DVB_AF9013)
#if IS_REACHABLE(CONFIG_DVB_AF9013)
extern struct dvb_frontend *af9013_attach(const struct af9013_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/atbm8830.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct atbm8830_config {
u8 agc_hold_loop;
};

#if IS_ENABLED(CONFIG_DVB_ATBM8830)
#if IS_REACHABLE(CONFIG_DVB_ATBM8830)
extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/au8522.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct au8522_config {
enum au8522_if_freq qam_if;
};

#if IS_ENABLED(CONFIG_DVB_AU8522_DTV)
#if IS_REACHABLE(CONFIG_DVB_AU8522_DTV)
extern struct dvb_frontend *au8522_attach(const struct au8522_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/bcm3510.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct bcm3510_config
int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
};

#if IS_ENABLED(CONFIG_DVB_BCM3510)
#if IS_REACHABLE(CONFIG_DVB_BCM3510)
extern struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,
struct i2c_adapter* i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx22700.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct cx22700_config
u8 demod_address;
};

#if IS_ENABLED(CONFIG_DVB_CX22700)
#if IS_REACHABLE(CONFIG_DVB_CX22700)
extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
struct i2c_adapter* i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx22702.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct cx22702_config {
u8 output_mode;
};

#if IS_ENABLED(CONFIG_DVB_CX22702)
#if IS_REACHABLE(CONFIG_DVB_CX22702)
extern struct dvb_frontend *cx22702_attach(
const struct cx22702_config *config,
struct i2c_adapter *i2c);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24110.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static inline int cx24110_pll_write(struct dvb_frontend *fe, u32 val)
return 0;
}

#if IS_ENABLED(CONFIG_DVB_CX24110)
#if IS_REACHABLE(CONFIG_DVB_CX24110)
extern struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,
struct i2c_adapter* i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24113.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct cx24113_config {
u32 xtal_khz;
};

#if IS_ENABLED(CONFIG_DVB_TUNER_CX24113)
#if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
const struct cx24113_config *config, struct i2c_adapter *i2c);

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24116.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct cx24116_config {
u16 i2c_wr_max;
};

#if IS_ENABLED(CONFIG_DVB_CX24116)
#if IS_REACHABLE(CONFIG_DVB_CX24116)
extern struct dvb_frontend *cx24116_attach(
const struct cx24116_config *config,
struct i2c_adapter *i2c);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24117.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct cx24117_config {
u8 demod_address;
};

#if IS_ENABLED(CONFIG_DVB_CX24117)
#if IS_REACHABLE(CONFIG_DVB_CX24117)
extern struct dvb_frontend *cx24117_attach(
const struct cx24117_config *config,
struct i2c_adapter *i2c);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24123.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct cx24123_config {
void (*agc_callback) (struct dvb_frontend *);
};

#if IS_ENABLED(CONFIG_DVB_CX24123)
#if IS_REACHABLE(CONFIG_DVB_CX24123)
extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config,
struct i2c_adapter *i2c);
extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cxd2820r.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct cxd2820r_config {
};


#if IS_ENABLED(CONFIG_DVB_CXD2820R)
#if IS_REACHABLE(CONFIG_DVB_CXD2820R)
extern struct dvb_frontend *cxd2820r_attach(
const struct cxd2820r_config *config,
struct i2c_adapter *i2c,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib0070.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct dib0070_config {
u8 vga_filter;
};

#if IS_ENABLED(CONFIG_DVB_TUNER_DIB0070)
#if IS_REACHABLE(CONFIG_DVB_TUNER_DIB0070)
extern struct dvb_frontend *dib0070_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dib0070_config *cfg);
extern u16 dib0070_wbd_offset(struct dvb_frontend *);
extern void dib0070_ctrl_agc_filter(struct dvb_frontend *, u8 open);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib0090.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct dib0090_config {
u8 force_crystal_mode;
};

#if IS_ENABLED(CONFIG_DVB_TUNER_DIB0090)
#if IS_REACHABLE(CONFIG_DVB_TUNER_DIB0090)
extern struct dvb_frontend *dib0090_register(struct dvb_frontend *fe, struct i2c_adapter *i2c, const struct dib0090_config *config);
extern struct dvb_frontend *dib0090_fw_register(struct dvb_frontend *fe, struct i2c_adapter *i2c, const struct dib0090_config *config);
extern void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib3000.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct dib_fe_xfer_ops
int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl);
};

#if IS_ENABLED(CONFIG_DVB_DIB3000MB)
#if IS_REACHABLE(CONFIG_DVB_DIB3000MB)
extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib3000mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct dib3000mc_config {
#define DEFAULT_DIB3000MC_I2C_ADDRESS 16
#define DEFAULT_DIB3000P_I2C_ADDRESS 24

#if IS_ENABLED(CONFIG_DVB_DIB3000MC)
#if IS_REACHABLE(CONFIG_DVB_DIB3000MC)
extern struct dvb_frontend *dib3000mc_attach(struct i2c_adapter *i2c_adap,
u8 i2c_addr,
struct dib3000mc_config *cfg);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib7000m.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct dib7000m_config {

#define DEFAULT_DIB7000M_I2C_ADDRESS 18

#if IS_ENABLED(CONFIG_DVB_DIB7000M)
#if IS_REACHABLE(CONFIG_DVB_DIB7000M)
extern struct dvb_frontend *dib7000m_attach(struct i2c_adapter *i2c_adap,
u8 i2c_addr,
struct dib7000m_config *cfg);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib7000p.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct dib7000p_ops {
struct dvb_frontend *(*init)(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000p_config *cfg);
};

#if IS_ENABLED(CONFIG_DVB_DIB7000P)
#if IS_REACHABLE(CONFIG_DVB_DIB7000P)
void *dib7000p_attach(struct dib7000p_ops *ops);
#else
static inline void *dib7000p_attach(struct dib7000p_ops *ops)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib8000.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct dib8000_ops {
struct dvb_frontend *(*init)(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg);
};

#if IS_ENABLED(CONFIG_DVB_DIB8000)
#if IS_REACHABLE(CONFIG_DVB_DIB8000)
void *dib8000_attach(struct dib8000_ops *ops);
#else
static inline int dib8000_attach(struct dib8000_ops *ops)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dib9000.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct dib9000_config {

#define DEFAULT_DIB9000_I2C_ADDRESS 18

#if IS_ENABLED(CONFIG_DVB_DIB9000)
#if IS_REACHABLE(CONFIG_DVB_DIB9000)
extern struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, const struct dib9000_config *cfg);
extern int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 first_addr);
extern struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/drxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct drxd_config {
s16(*osc_deviation) (void *priv, s16 dev, int flag);
};

#if IS_ENABLED(CONFIG_DVB_DRXD)
#if IS_REACHABLE(CONFIG_DVB_DRXD)
extern
struct dvb_frontend *drxd_attach(const struct drxd_config *config,
void *priv, struct i2c_adapter *i2c,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/drxk.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct drxk_config {
int qam_demod_parameter_count;
};

#if IS_ENABLED(CONFIG_DVB_DRXK)
#if IS_REACHABLE(CONFIG_DVB_DRXK)
extern struct dvb_frontend *drxk_attach(const struct drxk_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/ds3000.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct ds3000_config {
void (*set_lock_led)(struct dvb_frontend *fe, int offon);
};

#if IS_ENABLED(CONFIG_DVB_DS3000)
#if IS_REACHABLE(CONFIG_DVB_DS3000)
extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dvb-pll.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @param pll_desc_id dvb_pll_desc to use.
* @return Frontend pointer on success, NULL on failure
*/
#if IS_ENABLED(CONFIG_DVB_PLL)
#if IS_REACHABLE(CONFIG_DVB_PLL)
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
int pll_addr,
struct i2c_adapter *i2c,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/dvb_dummy_fe.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

#if IS_ENABLED(CONFIG_DVB_DUMMY_FE)
#if IS_REACHABLE(CONFIG_DVB_DUMMY_FE)
extern struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void);
extern struct dvb_frontend* dvb_dummy_fe_qpsk_attach(void);
extern struct dvb_frontend* dvb_dummy_fe_qam_attach(void);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/ec100.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct ec100_config {
};


#if IS_ENABLED(CONFIG_DVB_EC100)
#if IS_REACHABLE(CONFIG_DVB_EC100)
extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/hd29l2.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct hd29l2_config {
};


#if IS_ENABLED(CONFIG_DVB_HD29L2)
#if IS_REACHABLE(CONFIG_DVB_HD29L2)
extern struct dvb_frontend *hd29l2_attach(const struct hd29l2_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/isl6405.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define ISL6405_ENT2 0x20
#define ISL6405_ISEL2 0x40

#if IS_ENABLED(CONFIG_DVB_ISL6405)
#if IS_REACHABLE(CONFIG_DVB_ISL6405)
/* override_set and override_clear control which system register bits (above)
* to always set & clear
*/
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/isl6421.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define ISL6421_ISEL1 0x20
#define ISL6421_DCL 0x40

#if IS_ENABLED(CONFIG_DVB_ISL6421)
#if IS_REACHABLE(CONFIG_DVB_ISL6421)
/* override_set and override_clear control which system register bits (above) to always set & clear */
extern struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr,
u8 override_set, u8 override_clear, bool override_tone);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/isl6423.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct isl6423_config {
u8 mod_extern;
};

#if IS_ENABLED(CONFIG_DVB_ISL6423)
#if IS_REACHABLE(CONFIG_DVB_ISL6423)


extern struct dvb_frontend *isl6423_attach(struct dvb_frontend *fe,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/itd1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct itd1000_config {
u8 i2c_address;
};

#if IS_ENABLED(CONFIG_DVB_TUNER_ITD1000)
#if IS_REACHABLE(CONFIG_DVB_TUNER_ITD1000)
extern struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg);
#else
static inline struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/ix2505v.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct ix2505v_config {

};

#if IS_ENABLED(CONFIG_DVB_IX2505V)
#if IS_REACHABLE(CONFIG_DVB_IX2505V)
extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
const struct ix2505v_config *config, struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/l64781.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct l64781_config
u8 demod_address;
};

#if IS_ENABLED(CONFIG_DVB_L64781)
#if IS_REACHABLE(CONFIG_DVB_L64781)
extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
struct i2c_adapter* i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lg2160.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct lg2160_config {
enum lg_chip_type lg_chip;
};

#if IS_ENABLED(CONFIG_DVB_LG2160)
#if IS_REACHABLE(CONFIG_DVB_LG2160)
extern
struct dvb_frontend *lg2160_attach(const struct lg2160_config *config,
struct i2c_adapter *i2c_adap);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lgdt3305.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct lgdt3305_config {
enum lgdt_demod_chip_type demod_chip;
};

#if IS_ENABLED(CONFIG_DVB_LGDT3305)
#if IS_REACHABLE(CONFIG_DVB_LGDT3305)
extern
struct dvb_frontend *lgdt3305_attach(const struct lgdt3305_config *config,
struct i2c_adapter *i2c_adap);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lgdt330x.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct lgdt330x_config
int clock_polarity_flip;
};

#if IS_ENABLED(CONFIG_DVB_LGDT330X)
#if IS_REACHABLE(CONFIG_DVB_LGDT330X)
extern struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
struct i2c_adapter* i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lgs8gl5.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct lgs8gl5_config {
u8 demod_address;
};

#if IS_ENABLED(CONFIG_DVB_LGS8GL5)
#if IS_REACHABLE(CONFIG_DVB_LGS8GL5)
extern struct dvb_frontend *lgs8gl5_attach(
const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lgs8gxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct lgs8gxx_config {
u8 tuner_address;
};

#if IS_ENABLED(CONFIG_DVB_LGS8GXX)
#if IS_REACHABLE(CONFIG_DVB_LGS8GXX)
extern struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config,
struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lnbh24.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include <linux/dvb/frontend.h>

#if IS_ENABLED(CONFIG_DVB_LNBP21)
#if IS_REACHABLE(CONFIG_DVB_LNBP21)
/* override_set and override_clear control which
system register bits (above) to always set & clear */
extern struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lnbp21.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

#include <linux/dvb/frontend.h>

#if IS_ENABLED(CONFIG_DVB_LNBP21)
#if IS_REACHABLE(CONFIG_DVB_LNBP21)
/* override_set and override_clear control which
system register bits (above) to always set & clear */
extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/lnbp22.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include <linux/dvb/frontend.h>

#if IS_ENABLED(CONFIG_DVB_LNBP22)
#if IS_REACHABLE(CONFIG_DVB_LNBP22)
/*
* override_set and override_clear control which system register bits (above)
* to always set & clear
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/m88rs2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enum {
CALL_IS_READ,
};

#if IS_ENABLED(CONFIG_DVB_M88RS2000)
#if IS_REACHABLE(CONFIG_DVB_M88RS2000)
extern struct dvb_frontend *m88rs2000_attach(
const struct m88rs2000_config *config, struct i2c_adapter *i2c);
#else
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/mb86a16.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct mb86a16_config {



#if IS_ENABLED(CONFIG_DVB_MB86A16)
#if IS_REACHABLE(CONFIG_DVB_MB86A16)

extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
struct i2c_adapter *i2c_adap);
Expand Down
Loading

0 comments on commit 9b17452

Please sign in to comment.