From: Tomi Valkeinen Date: Tue, 12 Feb 2013 09:29:17 +0000 (+0530) Subject: OMAPDSS: generic dpi panel: handle gpios in panel driver X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0801711e1eea061cfdec2ad5bf1be687f7098c06;p=linux-beck.git OMAPDSS: generic dpi panel: handle gpios in panel driver The generic dpi 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. Add a generic way of passing gpio information to the generic dpi panel driver via it's platform_data. This information includes the number of gpios used by the panel, the gpio number and logic level (active high/low) for each gpio. This gpio data will be used by the driver to request and configure the gpios required by the panel. This will help in removing the need for the panel drivers to have platform related callbacks. Signed-off-by: Tomi Valkeinen Signed-off-by: Archit Taneja --- diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c index 5fb8063e2559..5c75e4de073c 100644 --- a/drivers/video/omap2/displays/panel-generic-dpi.c +++ b/drivers/video/omap2/displays/panel-generic-dpi.c @@ -33,6 +33,7 @@ #include #include #include +#include #include