media: rkvdec: use DIV_ROUND_UP() for CTB counts

Use DIV_ROUND_UP() when computing HEVC coding tree block counts
instead of open-coding the same rounding expression. This keeps the
rounding intent explicit without changing behavior.

Found using a Coccinelle rule generated from the DIV_ROUND_UP() macro
definition.

Signed-off-by: Hiroki Nakajima <3na7nanana@gmail.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Hiroki Nakajima 2026-07-12 16:26:52 +09:00 • committed by Hans Verkuil
commit 28ceb7eb73
3 changed files with 10 additions and 10 deletions