Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92762abc authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (8905): ov511: fix exposure sysfs attribute bug



Exposure was always 0. Thanks to sparse for finding this.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 135aedc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);