]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DISPC: fix 64 bit issue in 5-tap
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 10 Apr 2015 09:48:36 +0000 (12:48 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 17 Jun 2015 12:44:28 +0000 (15:44 +0300)
commit05f73ec17a2772e3898ddc4563187c73ab2dfd3c
treec6f61324c01169f99a21d01d52ef24155cb3975a
parent092447ee0a84c9bf175f7892bd3dadf063d92f22
OMAPDSS: DISPC: fix 64 bit issue in 5-tap

The DISPC driver uses 64 bit arithmetic to calculate the required clock
rate for scaling. The code does not seem to work correctly, and instead
calculates with 32 bit numbers, giving wrong result.

Fix the code by typecasting values to u64 first, so that the
calculations do happen in 64 bits.

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