media: imx: imx-mipi-csis: Simplify runtime PM implementation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 11 Mar 2022 13:29:03 +0000 (13:29 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 08:05:23 +0000 (09:05 +0100)
commitc22afddcf7c5001c00010c38f67689cf19e5fb65
treea85a42df89d5d214408956268aae39cbd98e24a8
parent2eab8739b6f6b3076a93d4b57f1b7cc92253b7c3
media: imx: imx-mipi-csis: Simplify runtime PM implementation

The runtime PM resume handler is guaranteed to be called on a suspended
device, and the suspend handler on a resumed device. The implementation
can thus be simplified.

While at it, rename the mipi_csis_device state field to powered, as the
now state contains a single flag only.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-mipi-csis.c