]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: outputs: Create and register output instances
authorArchit Taneja <archit@ti.com>
Wed, 26 Sep 2012 11:00:49 +0000 (16:30 +0530)
committerArchit Taneja <archit@ti.com>
Wed, 26 Sep 2012 11:00:49 +0000 (16:30 +0530)
commit88fcde1bc523e0e26df841c725d988773e7680e2
tree3eebf0e10cd70425bb80c60202236f8a2ce96a38
parentc73ec4db82ea98905a0f6504bfe50234fb1d87b0
OMAPDSS: outputs: Create and register output instances

Add output structs to output driver's private data. Register output instances by
having an init function in the probes of the platform device drivers for
different outputs. The *_init_output for each output registers the output and
fill up the output's plaform device, type and id fields. The *_uninit_output
functions unregister the output.

In the probe of each interface driver, the output entities are initialized
before the *_probe_pdata() functions intentionally. This is done to ensure that
the output entity is prepared before the panels connected to the output are
registered. We need the output entities to be ready because OMAPDSS will try
to make connections between overlays, managers, outputs and devices during the
panel's probe.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/sdi.c
drivers/video/omap2/dss/venc.c