summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/upd64083.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-04-24 01:33:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-24 01:33:08 -0300
commit005392231f73c7f7781c04eebf5869c0174f503e (patch)
treea261d186361d85d130fe033cc63d575421800727 /linux/drivers/media/video/upd64083.c
parent59964b28e0205cdf0a4465194f40867b7c7f5aa6 (diff)
parent2da45c822154d03cd7db86ac11b52385f1fac384 (diff)
downloadmediapointer-dvb-s2-005392231f73c7f7781c04eebf5869c0174f503e.tar.gz
mediapointer-dvb-s2-005392231f73c7f7781c04eebf5869c0174f503e.tar.bz2
merge: http://jusst.de/hg/v4l-dvb/
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/upd64083.c')
-rw-r--r--linux/drivers/media/video/upd64083.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/linux/drivers/media/video/upd64083.c b/linux/drivers/media/video/upd64083.c
index fdedc41ef..0dae4876e 100644
--- a/linux/drivers/media/video/upd64083.c
+++ b/linux/drivers/media/video/upd64083.c
@@ -40,7 +40,7 @@ module_param(debug, bool, 0644);
MODULE_PARM_DESC(debug, "Debug level (0-1)");
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
static unsigned short normal_i2c[] = { 0xb8 >> 1, 0xba >> 1, I2C_CLIENT_END };
I2C_CLIENT_INSMOD;
@@ -108,15 +108,16 @@ static u8 upd64083_read(struct v4l2_subdev *sd, u8 reg)
/* ------------------------------------------------------------------------ */
-static int upd64083_s_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route)
+static int upd64083_s_routing(struct v4l2_subdev *sd,
+ u32 input, u32 output, u32 config)
{
struct upd64083_state *state = to_state(sd);
u8 r00, r02;
- if (route->input > 7 || (route->input & 6) == 6)
+ if (input > 7 || (input & 6) == 6)
return -EINVAL;
- state->mode = (route->input & 3) << 6;
- state->ext_y_adc = (route->input & UPD64083_EXT_Y_ADC) << 3;
+ state->mode = (input & 3) << 6;
+ state->ext_y_adc = (input & UPD64083_EXT_Y_ADC) << 3;
r00 = (state->regs[R00] & ~(3 << 6)) | state->mode;
r02 = (state->regs[R02] & ~(1 << 5)) | state->ext_y_adc;
upd64083_write(sd, R00, r00);