staging: vc04_services: use DIV_ROUND_UP helper macro
authorWambui Karuga <wambui.karugax@gmail.com>
Sun, 13 Oct 2019 18:47:50 +0000 (21:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2019 13:36:58 +0000 (15:36 +0200)
commit388fa43d5979c400be9a73649058b33a2701cea0
treed43d12f96bbb306d0c00e63578527fcfa9dcef28
parent51a50b26c6dd296413350744722e4e5964c0991a
staging: vc04_services: use DIV_ROUND_UP helper macro

Replace open-coded division calculation with the DIV_ROUND_UP
helper macro for better readability.
Issue found using coccinelle:
@@
expression n,d;
@@
(
- ((n + d - 1) / d)
+ DIV_ROUND_UP(n,d)
|
- ((n + (d - 1)) / d)
+ DIV_ROUND_UP(n,d)
)

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Link: https://lore.kernel.org/r/20191013184750.32766-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h