From: Archit Taneja Date: Wed, 21 Nov 2012 10:09:31 +0000 (+0530) Subject: OMAPDSS: tpo-td043 panel: handle gpios in panel driver X-Git-Tag: MMI-PSA29.97-13-9~14364^2~24^2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7eab07e4cb2747e6ea4624a081684932cce72e6e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git OMAPDSS: tpo-td043 panel: handle gpios in panel driver The tpo-td043mtea1 panel driver leaves gpio configurations to the platform_enable and disable calls in the platform's board file. These should happen in the panel driver itself. Create a platform data struct for the panel, this contains the reset gpio number used by the panel driver, this struct will be passed to the panel driver as platform data. The driver will request and configure the reset gpio rather than leaving it to platform callbacks in board files. This will help in removing the need for the panel drivers to have platform related callbacks. Signed-off-by: Archit Taneja --- diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index 048c98381ef6..e3252bf4781a 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c @@ -18,6 +18,7 @@ #include #include