#ifndef STV0288_H
#define STV0288_H
#include <linux/dvb/frontend.h>
#include <media/dvb_frontend.h>
struct stv0288_config { … };
#if IS_REACHABLE(CONFIG_DVB_STV0288)
extern struct dvb_frontend *stv0288_attach(const struct stv0288_config *config,
struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *stv0288_attach(const struct stv0288_config *config,
struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
static inline int stv0288_writereg(struct dvb_frontend *fe, u8 reg, u8 val)
{ … }
#endif