]> 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)
commit93e34e0f7bb73fb798053722489855f38277b6ad
tree3ddab1e8b66b2163f48bd307529d94dfa790f0a2
parent698c4fb2ed41030ef0713a10ca106693b7863cfd
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