diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2019-09-30 10:18:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-01-03 16:37:39 +0100 |
commit | 96e3a6b92f23a97ca9bf3359ada1b5c773b32b7e (patch) | |
tree | 1ba002555e2d051224781393bb85d6665094fd2d /drivers/media/i2c/smiapp/smiapp.h | |
parent | dd12ed17ce9e5523d30d2d6b8eac0bf52500b64f (diff) |
media: smiapp: Avoid maintaining power state information
Instead of keeping track of the power state ourselves, let runtime PM
handle it.
This also splits handling controls between side effect management and
writing the new configuration to the sensor's registers.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/smiapp/smiapp.h')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp.h b/drivers/media/i2c/smiapp/smiapp.h index 3ab874a5deba..4837d80dc453 100644 --- a/drivers/media/i2c/smiapp/smiapp.h +++ b/drivers/media/i2c/smiapp/smiapp.h @@ -198,7 +198,6 @@ struct smiapp_sensor { u8 hvflip_inv_mask; /* H/VFLIP inversion due to sensor orientation */ u8 frame_skip; - bool active; /* is the sensor powered on? */ u16 embedded_start; /* embedded data start line */ u16 embedded_end; u16 image_start; /* image data start line */ |