Re: [PATCH] firmware: arm_scmi: base: Simplify protocol list size calculation
From: Cristian Marussi
Date: Sat Feb 28 2026 - 05:04:59 EST
On Sat, Feb 28, 2026 at 11:37:33AM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> 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@xxxxxxx>
Cristian