drm/omap: cleanup offset calculation
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 May 2017 12:01:10 +0000 (15:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:22 +0000 (10:57 +0300)
commit185e23e1f63aa3f2a7ad77f9315b5f8d84002bb0
treeb1f475a173661de6447231192ebfa658f87e3ff6
parent517a8a9564c0dea98e6d4e2c7f0fe4cbb9b8c9ba
drm/omap: cleanup offset calculation

The code to calculate offset in dispc's calc_offset() is overly complex.
Simplify it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/dss/dispc.c