summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_mode_object.c
diff options
context:
space:
mode:
authorWambui Karuga <wambui.karugax@gmail.com>2019-10-25 12:49:07 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-11-04 18:17:36 +0100
commitb8c8a85995c5c14df8465bf1ab0b92a59641fa7c (patch)
treedeaa09614582890f97c8ee842c5ff3a9b808974f /drivers/gpu/drm/drm_mode_object.c
parentff1fd2945c1a1274f769495b4ed5e83765683c62 (diff)
downloadlinux-b8c8a85995c5c14df8465bf1ab0b92a59641fa7c.tar.gz
linux-b8c8a85995c5c14df8465bf1ab0b92a59641fa7c.tar.bz2
linux-b8c8a85995c5c14df8465bf1ab0b92a59641fa7c.zip
drm: use DIV_ROUND_UP helper macro for calculations
Replace open coded divisor calculations with the DIV_ROUND_UP kernel 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> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191025094907.3582-1-wambui.karugax@gmail.com
Diffstat (limited to 'drivers/gpu/drm/drm_mode_object.c')
0 files changed, 0 insertions, 0 deletions