OMAPDSS: acx565akm panel: handle gpios in panel driver
authorArchit Taneja <archit@ti.com>
Tue, 20 Nov 2012 06:05:23 +0000 (11:35 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:19:47 +0000 (15:19 +0300)
commit3c45d05be382340dc4ccbef5819bd1eca601eb57
treeb36cae3c3ecd723b8436bfd20b3e5107b0752eea
parent3db716bca710b5f0f1749c058532728d21b85bfc
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 <archit@ti.com>
drivers/video/omap2/displays/panel-acx565akm.c