]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: tpo-td043 panel: handle gpios in panel driver
authorArchit Taneja <archit@ti.com>
Wed, 21 Nov 2012 10:09:31 +0000 (15:39 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:21:08 +0000 (15:21 +0300)
commitd6e0cb17c24541ed67cf3184eb3717e0e40b4847
treedc711c280a395037d9abf85b6b54c1d8c7cdf82b
parenta6af86f52dae35f44138f735a06109a3442953fe
OMAPDSS: tpo-td043 panel: handle gpios in panel driver

The tpo-td043mtea1 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-tpo-td043mtea1.c