summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-09-03 00:02:32 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-09-03 00:02:32 +0200
commit2f41bc61c3b5864177690d7f88d36366c3a05c5c (patch)
tree3f3bba65350104b49f97aadf23525af25d39f50e
parentca1721138b54195b4deee4c1f90952e7789a4c67 (diff)
downloadmediapointer-dvb-s2-2f41bc61c3b5864177690d7f88d36366c3a05c5c.tar.gz
mediapointer-dvb-s2-2f41bc61c3b5864177690d7f88d36366c3a05c5c.tar.bz2
ov511: fix exposure sysfs attribute bug
From: Hans Verkuil <hverkuil@xs4all.nl> Exposure was always 0. Thanks to sparse for finding this. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r--linux/drivers/media/video/ov511.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ov511.c b/linux/drivers/media/video/ov511.c
index 1c5b07566..5647e364e 100644
--- a/linux/drivers/media/video/ov511.c
+++ b/linux/drivers/media/video/ov511.c
@@ -5655,7 +5655,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);