diff options
Diffstat (limited to 'drivers/media/video/et61x251/et61x251_tas5130d1b.c')
-rw-r--r-- | drivers/media/video/et61x251/et61x251_tas5130d1b.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/et61x251/et61x251_tas5130d1b.c b/drivers/media/video/et61x251/et61x251_tas5130d1b.c index 3998d76a307a..a7d65b82b2fb 100644 --- a/drivers/media/video/et61x251/et61x251_tas5130d1b.c +++ b/drivers/media/video/et61x251/et61x251_tas5130d1b.c | |||
@@ -46,20 +46,20 @@ static int tas5130d1b_init(struct et61x251_device* cam) | |||
46 | 46 | ||
47 | 47 | ||
48 | static int tas5130d1b_set_ctrl(struct et61x251_device* cam, | 48 | static int tas5130d1b_set_ctrl(struct et61x251_device* cam, |
49 | const struct v4l2_control* ctrl) | 49 | const struct v4l2_control* ctrl) |
50 | { | 50 | { |
51 | int err = 0; | 51 | int err = 0; |
52 | 52 | ||
53 | switch (ctrl->id) { | 53 | switch (ctrl->id) { |
54 | case V4L2_CID_GAIN: | 54 | case V4L2_CID_GAIN: |
55 | err += et61x251_i2c_raw_write(cam, 2, 0x20, | 55 | err += et61x251_i2c_raw_write(cam, 2, 0x20, |
56 | 0xf6-ctrl->value, 0, 0, 0, | 56 | 0xf6-ctrl->value, 0, 0, 0, |
57 | 0, 0, 0, 0); | 57 | 0, 0, 0, 0); |
58 | break; | 58 | break; |
59 | case V4L2_CID_EXPOSURE: | 59 | case V4L2_CID_EXPOSURE: |
60 | err += et61x251_i2c_raw_write(cam, 2, 0x40, | 60 | err += et61x251_i2c_raw_write(cam, 2, 0x40, |
61 | 0x47-ctrl->value, 0, 0, 0, | 61 | 0x47-ctrl->value, 0, 0, 0, |
62 | 0, 0, 0, 0); | 62 | 0, 0, 0, 0); |
63 | break; | 63 | break; |
64 | default: | 64 | default: |
65 | return -EINVAL; | 65 | return -EINVAL; |