projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
135aedc
)
V4L/DVB (8905): ov511: fix exposure sysfs attribute bug
author
Hans Verkuil
<hverkuil@xs4all.nl>
Tue, 2 Sep 2008 22:02:32 +0000
(19:02 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 29 Sep 2008 14:32:32 +0000
(11:32 -0300)
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>
drivers/media/video/ov511.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/ov511.c
b/drivers/media/video/ov511.c
index 2576ded2b9c57498da14af8f82a37cc1fe98c8b3..c6852402c5e986d3b93161b636db049789f5b6a4 100644
(file)
--- 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);