]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/video/of_display_timing.c
videomode: don't allocate mem in of_get_display_timing()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 16 May 2013 12:29:06 +0000 (15:29 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 May 2013 11:42:51 +0000 (14:42 +0300)
commitfcf7e6e5bd84b561eca4f7977c2a547f724f5942
tree1dae7d4c04bacd47486fd3a9a492a55b7f89b88a
parent301bc0675b677a98475187050d56cd2b39ff0acf
videomode: don't allocate mem in of_get_display_timing()

Move the allocation of display_timing memory from of_get_display_timing() to
of_get_display_timings(). This allows us to use of_get_display_timing()
in a way that doesn't require dynamic memory allocation.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
drivers/video/of_display_timing.c