summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-09 12:36:58 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:48 -0300
commit0fc55e81d3364e6535cacb10b5a579f8c62625b1 (patch)
tree28e84110be681bd247568f70a71a406254a54675 /drivers/media/dvb/frontends/drxk.h
parent5e66b87840dd275eafa6b4135b174212dd7c0d75 (diff)
[media] drxk: Move I2C address into a config structure
Currently, the only parameter to be configured is the I2C address. However, Terratec H5 logs shows that it needs a different setting for some things, and it has its own firmware. So, move the addr into a config structure, in order to allow adding the required configuration bits. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk.h')
-rw-r--r--drivers/media/dvb/frontends/drxk.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/drxk.h b/drivers/media/dvb/frontends/drxk.h
index d1c133e065f..a7b295f82a8 100644
--- a/drivers/media/dvb/frontends/drxk.h
+++ b/drivers/media/dvb/frontends/drxk.h
@@ -4,7 +4,11 @@
#include <linux/types.h>
#include <linux/i2c.h>
-extern struct dvb_frontend *drxk_attach(struct i2c_adapter *i2c,
- u8 adr,
+struct drxk_config {
+ u8 adr;
+};
+
+extern struct dvb_frontend *drxk_attach(const struct drxk_config *config,
+ struct i2c_adapter *i2c,
struct dvb_frontend **fe_t);
#endif