]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: nec-nl8048 panel: handle gpios in panel driver
authorArchit Taneja <archit@ti.com>
Mon, 17 Sep 2012 09:08:36 +0000 (12:08 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:19:47 +0000 (15:19 +0300)
commit8daa05b5f209b7e831ad35728bb2c40219c51f6e
tree26e775d0cc2be0d6201343f79507817ead3731e3
parent8f96815b1f9ac555ea0d6323eaf4af90811f03f2
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 <archit@ti.com>
drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c