diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-02 18:02:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-29 10:32:32 -0400 |
commit | 92762abc3dfb10c9cb41a12271b8c7513a4fce20 (patch) | |
tree | 3edd124fcc1e5a4dc5e1fe3188279f3d9877ddde /drivers/media | |
parent | 135aedc38e812b922aa56096f36a3d72ffbcf2fb (diff) |
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/ov511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 2576ded2b9c5..c6852402c5e9 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, | |||
5653 | if (!ov->dev) | 5653 | if (!ov->dev) |
5654 | return -ENODEV; | 5654 | return -ENODEV; |
5655 | sensor_get_exposure(ov, &exp); | 5655 | sensor_get_exposure(ov, &exp); |
5656 | return sprintf(buf, "%d\n", exp >> 8); | 5656 | return sprintf(buf, "%d\n", exp); |
5657 | } | 5657 | } |
5658 | static DEVICE_ATTR(exposure, S_IRUGO, show_exposure, NULL); | 5658 | static DEVICE_ATTR(exposure, S_IRUGO, show_exposure, NULL); |
5659 | 5659 | ||