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)
commitcf0736681e569b0d3803d68d4f6d00f544f3426a
tree6eb881231142d4465978fa8dc48de597b57ac943
parent1cb0017813e82c740ef7b60bdaa0aa74eaab6a76
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