#ifndef _LGDT3306A_H_
#define _LGDT3306A_H_
#include <linux/i2c.h>
#include <media/dvb_frontend.h>
enum lgdt3306a_mpeg_mode { … };
enum lgdt3306a_tp_clock_edge { … };
enum lgdt3306a_tp_valid_polarity { … };
struct lgdt3306a_config { … };
#if IS_REACHABLE(CONFIG_DVB_LGDT3306A)
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap);
#else
static inline
struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config,
struct i2c_adapter *i2c_adap)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
#endif