[PATCH] firmware: arm_scmi: move boiler plate code into the get info functions
Sudeep Holla
sudeep.holla at arm.com
Thu Jan 1 09:54:07 PST 2026
On Mon, 27 Oct 2025 18:16:06 +0300, Dan Carpenter wrote:
> This code to check whether the selector is valid and if the item has
> already been recorded in the array can be moved to the
> scmi_pinctrl_get_function_info() type functions. That way it's in
> one place instead of duplicated in each of the callers.
>
> Remove the check for if "pi->nr_groups == 0" because if that were the
> case then "selector >= pi->nr_groups" would already be true. It already
> was not checked for the pin case so this makes things a bit more uniform.
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!
[1/1] firmware: arm_scmi: move boiler plate code into the get info functions
https://git.kernel.org/sudeep.holla/c/a3c46c82d8a2
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list