Skip to contentSkip to conversation

ipmi: constify ACPI device ids

PATCH Applied Mathias Krause 2 participants 2 messages Jun 13, 2015 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmi: constify ACPI device ids

Constify the ACPI device ID array, it doesn't need to be writable at runtime.

---
 drivers/char/ipmi/ipmi_ssif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_ssif.c +1 -1
index 207689c444a8..95a0910d91e4 100644
@@ -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
#1 lore raw

Queued 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.

---
 drivers/char/ipmi/ipmi_ssif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_ssif.c +1 -1
index 207689c444a8..95a0910d91e4 100644
@@ -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 },
 	{ },
 };