From mboxrd@z Thu Jan 1 00:00:00 1970 From: Archit Taneja Date: Wed, 13 Feb 2013 14:33:54 +0000 Subject: [PATCH 02/33] OMAPDSS: generic dpi panel: handle gpios in panel driver Message-Id: <1360765345-19312-3-git-send-email-archit@ti.com> List-Id: References: <1360765345-19312-1-git-send-email-archit@ti.com> In-Reply-To: <1360765345-19312-1-git-send-email-archit@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: tomi.valkeinen@ti.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Archit Taneja From: Tomi Valkeinen 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 --- drivers/video/omap2/displays/panel-generic-dpi.c | 25 ++++++++++++++++++++-- include/video/omap-panel-data.h | 7 ++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c index d8d0cd5..4a12db6 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