]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: ipu-di: Switch to DIV_ROUND_CLOSEST for DI clock divider calc
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 19 Dec 2014 02:00:26 +0000 (18:00 -0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jan 2015 18:15:04 +0000 (19:15 +0100)
commitc4ff18721d736aa56941fb74ae1c910ef13fc3e6
treef90982a4e002c56599a7693270d6f035991297dc
parentdc5fd35b1215c22a5ccaaa4f4842c3d64ce22ad0
gpu: ipu-di: Switch to DIV_ROUND_CLOSEST for DI clock divider calc

We can use the DIV_ROUND_CLOSEST() macro when calculating the DI
clock divider, rounded to nearest int.

Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-di.c