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)
commit503f1631ae8f42a386193c92cc4488d35978352e
treef90982a4e002c56599a7693270d6f035991297dc
parentb6835a719aaa5ee6f493c94cb8b1ff9ad13f5a18
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