]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DSI: improve DSI module id handling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Mar 2012 14:07:39 +0000 (16:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 May 2012 11:54:41 +0000 (14:54 +0300)
commita3a22b381d2563520299d9705cd87142e244528e
treeca384f9c195ff7a124b9c0c587231389c98e2f1f
parenta289f017bfa7cb15623083a82698dab3971d6fbb
OMAPDSS: DSI: improve DSI module id handling

We currently use the id of the dsi platform device (dsidev->id) as the
DSI hardware module ID. This works because we assign the ID manually in
arch/arm/mach-omap2/display.c at boot time.

However, with device tree the platform device IDs are automatically
assigned to an arbitrary number, and we can't use it.

Instead of using dsidev->id during operation, this patch stores the
value of dsidev->id to a private field of the dsi driver at probe(). The
future device tree code can thus set the private field with some other
way.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c