]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/hdmi: Clean up connector gpio usage
authorArchit Taneja <architt@codeaurora.org>
Thu, 25 Feb 2016 05:52:36 +0000 (11:22 +0530)
committerRob Clark <robdclark@gmail.com>
Mon, 29 Feb 2016 14:48:30 +0000 (09:48 -0500)
commit6c87dc0fe9e7cad5b1b30c85ba787d82c9e9291b
tree3ddab1e8b66b2163f48bd307529d94dfa790f0a2
parent90239ce116a73305aa53409d3aed97f872a2562b
drm/msm/hdmi: Clean up connector gpio usage

Make gpio allocation and usage iterative by parsing the gpios on a given
platform from a list. This gives us flexibility over what all gpios exist
for a platform, whether they are input or output, and what value they
should be set to.

In particular, this will make HDMI on 8x96 platforms easier to integrate
with the driver, as it doesn't have a HPD gpio input to them. Also, it
cleans things up a bit.

We still use the legacy gpio api here, as we might need to backport this
driver to downstream kernels.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/hdmi/hdmi.c
drivers/gpu/drm/msm/hdmi/hdmi.h
drivers/gpu/drm/msm/hdmi/hdmi_connector.c