]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0d63ed037d3cff9141c97e9b60dfa7b343212c9
treeb1f475a173661de6447231192ebfa658f87e3ff6
parent68327b5d4c7cce498fe1cf9c6e1aba42ad4b6e64
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