]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
firmware: scmi: Cleanup the SCMI MISC ID
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Oct 2025 09:32:31 +0000 (17:32 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 24 Oct 2025 19:47:50 +0000 (13:47 -0600)
SCMI_IMX_PROTOCOL_ID_MISC was never used, so drop it. And move
SCMI_PROTOCOL_ID_IMX_MISC out of enum scmi_std_protocol to
scmi_nxp_protocols.h, because it is i.MX specific and following Linux
Kernel style, use macro definition.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
include/scmi_nxp_protocols.h
include/scmi_protocols.h

index fe6ecd6a7cf5a4fb37115a8cfecf38d1e41e156d..7e2143b16ead05a2662d9b88d2d348ab16a5750f 100644 (file)
@@ -9,9 +9,7 @@
 #include <asm/types.h>
 #include <linux/bitops.h>
 
-enum scmi_imx_protocol {
-       SCMI_IMX_PROTOCOL_ID_MISC = 0x84,
-};
+#define SCMI_PROTOCOL_ID_IMX_MISC      0x84
 
 #define SCMI_PAYLOAD_LEN       100
 
index 95e0c3cce3b9d4430383bac0bcb0a541f4af13f6..5c9516d5595c2f39ee3223a6cffab2a91e1cd97e 100644 (file)
@@ -25,7 +25,6 @@ enum scmi_std_protocol {
        SCMI_PROTOCOL_ID_RESET_DOMAIN = 0x16,
        SCMI_PROTOCOL_ID_VOLTAGE_DOMAIN = 0x17,
        SCMI_PROTOCOL_ID_PINCTRL = 0x19,
-       SCMI_PROTOCOL_ID_IMX_MISC = 0x84,
 };
 
 enum scmi_status_code {