mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-03-01 10:35:23 +00:00
initial commit from dddvb-0.9.19c
This commit is contained in:
30
frontends/cxd2843.h
Normal file
30
frontends/cxd2843.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef _CXD2843_H_
|
||||
#define _CXD2843_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/i2c.h>
|
||||
|
||||
struct cxd2843_cfg {
|
||||
u8 adr;
|
||||
u32 ts_clock;
|
||||
u8 parallel;
|
||||
};
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user