OSDN Git Service

drm/vc4: hdmi: Convert to gpiod
authorMaxime Ripard <maxime@cerno.tech>
Mon, 24 May 2021 13:18:52 +0000 (15:18 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Jun 2021 11:33:46 +0000 (13:33 +0200)
commit6800234ceee01416657b05efcf233f6bdc68272c
tree55d43cc82226982b3f0a0962bca447b28ac290b9
parente075a7811977ff51c917a65ed1896e08231d2615
drm/vc4: hdmi: Convert to gpiod

The new gpiod interface takes care of parsing the GPIO flags and to
return the logical value when accessing an active-low GPIO, so switching
to it simplifies a lot the driver.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210524131852.263883-2-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h