From: Archit Taneja Date: Mon, 17 Sep 2012 09:08:36 +0000 (+0300) Subject: OMAPDSS: nec-nl8048 panel: handle gpios in panel driver X-Git-Tag: v3.12-rc1~769^2~24^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57bc6c517bd930ef5db527dd4efe4f7ce36b025e;p=kernel%2Fkernel-generic.git OMAPDSS: nec-nl8048 panel: handle gpios in panel driver The nec-nl8048hl11-01 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 gpio numbers used by the panel driver, this struct will be passed to the panel driver as platform data. The driver will request and configure these gpios 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-nec-nl8048hl11-01b.c b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c index c197927..3b85e2a 100644 --- a/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c +++ b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c @@ -20,8 +20,10 @@ #include #include #include +#include #include