Commit 6eb94193 authored by Ralph Metzler's avatar Ralph Metzler Committed by Mauro Carvalho Chehab

[media] cxd2099: Update to latest version

Import latest driver from ddbridge-0.6.1.tar.bz2.
Signed-off-by: default avatarRalph Metzler <rmetzler@digitaldevices.de>
Signed-off-by: default avatarOliver Endriss <o.endriss@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a26c1b3e
This diff is collapsed.
/* /*
* cxd2099.h: Driver for the CXD2099AR Common Interface Controller * cxd2099.h: Driver for the CXD2099AR Common Interface Controller
* *
* Copyright (C) 2010 DigitalDevices UG * Copyright (C) 2010-2011 Digital Devices GmbH
* *
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -27,11 +27,21 @@ ...@@ -27,11 +27,21 @@
#include <dvb_ca_en50221.h> #include <dvb_ca_en50221.h>
struct cxd2099_cfg {
u32 bitrate;
u8 adr;
u8 polarity : 1;
u8 clock_mode : 1;
};
#if defined(CONFIG_DVB_CXD2099) || \ #if defined(CONFIG_DVB_CXD2099) || \
(defined(CONFIG_DVB_CXD2099_MODULE) && defined(MODULE)) (defined(CONFIG_DVB_CXD2099_MODULE) && defined(MODULE))
struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c); struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
void *priv, struct i2c_adapter *i2c);
#else #else
static inline struct dvb_ca_en50221 *cxd2099_attach(u8 adr, void *priv, struct i2c_adapter *i2c)
static inline struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
void *priv, struct i2c_adapter *i2c);
{ {
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment