drm/gma500: Pass GPIO for Intel MID using descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 6 Dec 2019 09:43:01 +0000 (10:43 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Dec 2019 23:26:10 +0000 (00:26 +0100)
commitcd6a1ca38698b0c8ff8afe5074fe53aff3647973
tree92d2a18dc0bd3e65b90eff30381794eb0e77c2b7
parent2840f1f0e4175bd0dac292408189332cc597d163
drm/gma500: Pass GPIO for Intel MID using descriptors

The GMA500 driver is using the legacy GPIO API to fetch
three optional display control GPIO lines from the SFI
description used by the Medfield platform.

Switch this over to use GPIO descriptors and delete the
custom platform data.

We create three new static locals in the tc35876x bridge
code but it is hardly any worse than the I2C client static
local already there: I tried first to move it to the DRM
driver state container but there are workarounds for
probe order in the code so I just stayed off it, as the
result is unpredictable.

People wanting to do a more throrugh and proper cleanup
of the GMA500 driver can work on top of this, I can't
solve much more since I don't have access to the hardware,
I can only attempt to tidy up my GPIO corner.

Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191206094301.76368-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c
include/linux/platform_data/tc35876x.h [deleted file]