]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: handle 0 out_width/out_height in ovl_setup()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Nov 2011 14:08:27 +0000 (16:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:25 +0000 (08:54 +0200)
commitbe7f5b80581c4f8e663c35946c6ab7eb295902eb
tree6eb881231142d4465978fa8dc48de597b57ac943
parent5014a7a5d2f570de3de62fd4fcbf09dc70a13707
OMAPDSS: DISPC: handle 0 out_width/out_height in ovl_setup()

Overlay out_width/height are set to 0 when scaling is not used by the
users of omapdss. Currently ovl_setup() expects the caller of
ovl_setup() to convert those zero values to width or height.

This patch makes ovl_setup() accept zero values for out_width/height,
making calling ovl_setup() a bit simpler as the overlay_info can be
just passed to this function without modifications.

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