From mboxrd@z Thu Jan 1 00:00:00 1970 From: Archit Taneja Date: Wed, 13 Feb 2013 14:34:10 +0000 Subject: [PATCH 18/33] OMAPDSS: nec-nl8048 panel: handle gpios ins panel driver Message-Id: <1360765345-19312-19-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 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 --- .../omap2/displays/panel-nec-nl8048hl11-01b.c | 45 +++++++++++++++----- include/video/omap-panel-data.h | 10 +++++ 2 files changed, 44 insertions(+), 11 deletions(-) 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