]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: use DIV_ROUND_UP macro for calculations.
authorWambui Karuga <wambui.karugax@gmail.com>
Thu, 9 Jan 2020 14:20:57 +0000 (17:20 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 13 Jan 2020 13:04:00 +0000 (14:04 +0100)
commit1cf4f9321d8b834000e51aac8c981d72471a0663
tree579bd1a1139e0ba7bbefd9164bad8465b576c903
parent5e06c00e3e4ccb0276a9bc007da76ced44646a73
drm/rockchip: use DIV_ROUND_UP macro for calculations.

Replace the open coded calculation with the more concise and readable
DIV_ROUND_UP macro.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200109142057.10744-1-wambui.karugax@gmail.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.h