media: exynos4-is: Simplify the pinctrl code
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 10 Aug 2020 15:32:40 +0000 (17:32 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:20:39 +0000 (08:20 +0200)
commit084dd48166dda39b77828473a31a72b9fa28f468
treeda6bb9233aefd5097496abc78a63d1a62b2bda17
parent00d21f325d58567d81d9172096692d0a9ea7f725
media: exynos4-is: Simplify the pinctrl code

There is no need to request the "idle" pinctrl state in the driver as that
is implemented in the driver core and the pinctrl_pm_* API can be used for
switching between the default and the idle state.

Simplify the pinctrl code to only request and check for the mandatory
"default" pinctrl state.

Switching between the default/idle pinctrl state is not yet implemented
in the driver and this patch doesn't change that.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/exynos4-is/media-dev.c
drivers/media/platform/exynos4-is/media-dev.h