2015-08-05 17:22:42 +02:00
|
|
|
#ifndef _CXD2843_H_
|
|
|
|
#define _CXD2843_H_
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/i2c.h>
|
|
|
|
|
|
|
|
struct cxd2843_cfg {
|
|
|
|
u8 adr;
|
|
|
|
u32 ts_clock;
|
|
|
|
u8 parallel;
|
2016-11-07 21:19:53 +01:00
|
|
|
u32 osc;
|
2015-08-05 17:22:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(CONFIG_DVB_CXD2843) || \
|
|
|
|
(defined(CONFIG_DVB_CXD2843_MODULE) && defined(MODULE))
|
|
|
|
|
|
|
|
extern struct dvb_frontend *cxd2843_attach(struct i2c_adapter *i2c,
|
|
|
|
struct cxd2843_cfg *cfg);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline struct dvb_frontend *cxd2843_attach(struct i2c_adapter *i2c,
|
|
|
|
struct cxd2843_cfg *cfg)
|
|
|
|
{
|
|
|
|
pr_warn("%s: driver disabled by Kconfig\n", __func__);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|