]> 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)
commita0f59607f4a9fbfdcfe7b5b7c7e3704dac16e86a
tree579bd1a1139e0ba7bbefd9164bad8465b576c903
parent5118259f036342df3192f34236af3ffca5e4b85c
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