]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: ccs: No need to set streaming to false in power off
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 3 Oct 2023 09:48:22 +0000 (12:48 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:02 +0000 (23:33 +0100)
Streaming will have been stopped before the sensor is powered off, and so
sensor->streaming is also false already. Do not set it as part of the
runtime suspend callback.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ccs/ccs-core.c

index dadff8c506794ed54906c0cbd940dc735bf1ef43..c7ed90d9473a6732d4379da3103d687567d494a4 100644 (file)
@@ -1704,7 +1704,6 @@ static int ccs_power_off(struct device *dev)
        usleep_range(5000, 5000);
        regulator_bulk_disable(ARRAY_SIZE(ccs_regulators),
                               sensor->regulators);
-       sensor->streaming = false;
 
        return 0;
 }