OSDN Git Service

media: smiapp: Avoid maintaining power state information
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 30 Sep 2019 08:18:45 +0000 (10:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 3 Jan 2020 15:37:39 +0000 (16:37 +0100)
commit96e3a6b92f23a97ca9bf3359ada1b5c773b32b7e
tree1ba002555e2d051224781393bb85d6665094fd2d
parentdd12ed17ce9e5523d30d2d6b8eac0bf52500b64f
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>
drivers/media/i2c/smiapp/smiapp-core.c
drivers/media/i2c/smiapp/smiapp-regs.c
drivers/media/i2c/smiapp/smiapp.h