media: s5k4ecgx: Switch to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Nov 2022 19:53:27 +0000 (20:53 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Dec 2022 16:58:47 +0000 (17:58 +0100)
commitc3093bdc6bc37f979b6966cb48225657405d84ec
tree7693e9299e59763ed5ff2efea34d31dc2668dd8d
parent6cb7d1b3ff83e98e852db9739892c4643a31804b
media: s5k4ecgx: Switch to GPIO descriptors

The driver has an option to pass in GPIO numbers from platform
data but this is not used in the kernel so delete this and the
whole platform data mechanism.

Get GPIO descriptors using the standard API and simplify the code,
gpiolib will handle any inversions.

Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/s5k4ecgx.c
include/media/i2c/s5k4ecgx.h [deleted file]