media: ccs: Drop re-entrant s_stream support
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 29 Sep 2023 08:32:46 +0000 (11:32 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:48 +0000 (10:55 +0200)
commit8a695a29d68e8f6e7334ae4fdcffd7e687a48d2f
treeb973c23f7e299fbc38f7b9a640aca04ea6bdd6ce
parent2428e585b1e79efc1ecc3eaf64ad777e1272b792
media: ccs: Drop re-entrant s_stream support

The s_stream is called to enable and to disable streaming on a sub-device.
The caller may only call it to change the state, enabling streaming is not
allowed when it is already disabled, and similarly for disabling
streaming. Remove the check from the CCS driver.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ccs/ccs-core.c