summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-09-02 19:02:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-29 11:32:32 -0300
commit92762abc3dfb10c9cb41a12271b8c7513a4fce20 (patch)
tree3edd124fcc1e5a4dc5e1fe3188279f3d9877ddde
parent135aedc38e812b922aa56096f36a3d72ffbcf2fb (diff)
downloadop-kernel-dev-92762abc3dfb10c9cb41a12271b8c7513a4fce20.zip
op-kernel-dev-92762abc3dfb10c9cb41a12271b8c7513a4fce20.tar.gz
V4L/DVB (8905): ov511: fix exposure sysfs attribute bug
Exposure was always 0. Thanks to sparse for finding this. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/ov511.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 2576ded..c685240 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -5653,7 +5653,7 @@ static ssize_t show_exposure(struct device *cd,
if (!ov->dev)
return -ENODEV;
sensor_get_exposure(ov, &exp);
- return sprintf(buf, "%d\n", exp >> 8);
+ return sprintf(buf, "%d\n", exp);
}
static DEVICE_ATTR(exposure, S_IRUGO, show_exposure, NULL);
OpenPOWER on IntegriCloud