Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c: ov2740: Drop check for reentrant .s_stream()

The subdev .s_stream() operation shall not be called to start streaming
on an already started subdev, or stop streaming on a stopped subdev.
Remove the check that guards against that condition.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Laurent Pinchart and committed by
Hans Verkuil
58e7ab2f 493d786b

-3
-3
drivers/media/i2c/ov2740.c
··· 794 794 struct i2c_client *client = v4l2_get_subdevdata(sd); 795 795 int ret = 0; 796 796 797 - if (ov2740->streaming == enable) 798 - return 0; 799 - 800 797 mutex_lock(&ov2740->mutex); 801 798 if (enable) { 802 799 ret = pm_runtime_resume_and_get(&client->dev);