[PATCH v9 4/5] gpio: rpmsg: add support for NXP legacy firmware protocol

Frank Li Frank.Li at nxp.com
Thu Mar 5 07:16:01 PST 2026


From: Frank Li (AI-BOT) <frank.li at nxp.com>


> +static int imx_std_cmd_map[] = {

AI: Should be 'static const int' since this is a read-only lookup table.

> +	if (msg->cmd >= sizeof(imx_std_cmd_map))

AI: Use ARRAY_SIZE(imx_std_cmd_map) instead of sizeof() for clarity.

because imx_std_cmd_map is array, AI most likely is correct.

Frank



More information about the linux-arm-kernel mailing list