]> git.ipfire.org Git - thirdparty/linux.git/commit
fbdev/media: Use GPIO descriptors for VIA GPIO
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Jun 2023 06:33:14 +0000 (08:33 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 19 Jun 2023 07:02:51 +0000 (09:02 +0200)
commitd4313a68ec913f2705b337e2d332813a72cb2de9
treee16437b2837fa8b6505254610add8b3276a68d0a
parent568c69ae2fea27e0152e4ffeee7c6f354c61810f
fbdev/media: Use GPIO descriptors for VIA GPIO

The VIA fbdev exposes a custom GPIO chip for its GPIOs, these
are in turn looked up the camera driver using a custom API.

Drop the custom API, provide a look-up table and convert to
GPIO descriptors. Note proper polarity on the RESET line.

Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/media/platform/via/via-camera.c
drivers/video/fbdev/via/via-core.c
drivers/video/fbdev/via/via-gpio.c
drivers/video/fbdev/via/via-gpio.h [moved from include/linux/via-gpio.h with 84% similarity]