From: Archit Taneja Date: Tue, 20 Nov 2012 06:05:23 +0000 (+0530) Subject: OMAPDSS: acx565akm panel: handle gpios in panel driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3c45d05be382340dc4ccbef5819bd1eca601eb57;p=openwrt%2Fstaging%2Fblogic.git OMAPDSS: acx565akm panel: handle gpios in panel driver The acx565akm 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-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c index a8fb26b0ee85..d7f69c09ecf1 100644 --- a/drivers/video/omap2/displays/panel-acx565akm.c +++ b/drivers/video/omap2/displays/panel-acx565akm.c @@ -29,8 +29,10 @@ #include #include #include +#include #include