ipmi: constify ACPI device ids
PATCH 1/1 ipmi: constify ACPI device ids
Constify the ACPI device ID array, it doesn't need to be writable at runtime.
Signed-off-by Mathias Krause <[email protected]>
--- drivers/char/ipmi/ipmi_ssif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_ssif.c +1 -1
@@ -1787,7 +1787,7 @@ skip_addr: }#ifdef CONFIG_ACPI -static struct acpi_device_id ssif_acpi_match[] = { +static const struct acpi_device_id ssif_acpi_match[] = { {"IPI0001" ,0 }, { }, };
Signature · 1 line
1.7.10.4
Corey Minyard
AppliedQueued for the next kernel release. Thanks.
-corey
Quoted 21 lines · Mathias Krause
Constify the ACPI device ID array, it doesn't need to be writable at runtime.
Signed-off-by Mathias Krause <[email protected]>--- drivers/char/ipmi/ipmi_ssif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/ipmi/ipmi_ssif.c +1
-1@@ -1787,7 +1787,7 @@ skip_addr: }#ifdef CONFIG_ACPI -static struct acpi_device_id ssif_acpi_match[] = { +static const struct acpi_device_id ssif_acpi_match[] = { {"IPI0001" ,0 }, { }, };