From: Hans Verkuil Date: Tue, 2 Sep 2008 22:02:32 +0000 (-0300) Subject: V4L/DVB (8905): ov511: fix exposure sysfs attribute bug X-Git-Tag: v2.6.27-rc9~6^2~23 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=92762abc3dfb10c9cb41a12271b8c7513a4fce20;p=linux-2.6-omap-h63xx.git V4L/DVB (8905): ov511: fix exposure sysfs attribute bug Exposure was always 0. Thanks to sparse for finding this. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 2576ded2b9c..c6852402c5e 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);