]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: clean up the omapdss platform data mess
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 20 Feb 2012 09:50:06 +0000 (11:50 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 May 2012 11:44:51 +0000 (14:44 +0300)
commit1cef0358aa52cbc85e786342a8de47f6dbecef95
treef5e4b086bf57243d1d5b1ae7f38891c26b473263
parentf1b716ca7666439ab1c0461038dde79fa5d16576
OMAPDSS: clean up the omapdss platform data mess

The omapdss pdata handling is a mess. This is more evident when trying
to use device tree for DSS, as we don't have platform data anymore in
that case. This patch cleans the pdata handling by:

- Remove struct omap_display_platform_data. It was used just as a
  wrapper for struct omap_dss_board_info.
- Pass the platform data only to omapdss device. The drivers for omap
  dss hwmods do not need the platform data. This should also work better
  for DT, as we can create omapdss device programmatically in generic omap
  boot code, and thus we can pass the pdata to it.
- Create dss functions for get_ctx_loss_count and dsi_enable/disable_pads
  that the dss hwmod drivers can call.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
arch/arm/mach-omap2/display.c
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/hdmi.c
include/video/omapdss.h