[PATCH] firmware: arm_scmi: base: Simplify protocol list size calculation
Cristian Marussi
cristian.marussi at arm.com
Sat Feb 28 02:03:59 PST 2026
On Sat, Feb 28, 2026 at 11:37:33AM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Replace the open-coded round-up calculation with the kernel's round_up()
> helper function for better readability.
>
> The original expression:
> (1 + (loop_num_ret - 1) / sizeof(u32)) * sizeof(u32)
>
Thanks for this.
LGTM.
Reviewed-by: Cristian Marussi <cristian.marussi at arm.com>
Cristian
More information about the linux-arm-kernel
mailing list