Skip to content
/ linux Public

Commit 9466dc8

Browse files
Hans de GoedeSasha Levin
authored andcommitted
media: i2c: ov01a10: Fix passing stream instead of pad to v4l2_subdev_state_get_format()
[ Upstream commit f8563a3 ] The 2 argument version of v4l2_subdev_state_get_format() takes the pad as second argument, not the stream. Fixes: bc0e8d9 ("media: v4l: subdev: Switch to stream-aware state functions") Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede <hansg@kernel.org> Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315 Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent be04fe4 commit 9466dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/ov01a10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ static int ov01a10_set_format(struct v4l2_subdev *sd,
731731
h_blank);
732732
}
733733

734-
format = v4l2_subdev_state_get_format(sd_state, fmt->stream);
734+
format = v4l2_subdev_state_get_format(sd_state, fmt->pad);
735735
*format = fmt->format;
736736

737737
return 0;

0 commit comments

Comments
 (0)