Skip to contentSkip to conversation

mfd: intel_soc_pmic: Constify ACPI device ids

PATCH In review Mathias Krause 2 participants 2 messages Jun 13, 2015 – Jun 24, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: intel_soc_pmic: Constify ACPI device ids

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

---
 drivers/mfd/intel_soc_pmic_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/intel_soc_pmic_core.c +1 -1
index 7b50b6b208a5..27e7552a29dd 100644
@@ -147,7 +147,7 @@ static const struct i2c_device_id intel_soc_pmic_i2c_id[] = {
 MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id);
 
 #if defined(CONFIG_ACPI)
-static struct acpi_device_id intel_soc_pmic_acpi_match[] = {
+static const struct acpi_device_id intel_soc_pmic_acpi_match[] = {
 	{"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc},
 	{ },
 };
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 9 lines · Mathias Krause

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

---
 drivers/mfd/intel_soc_pmic_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied for v4.3, thanks.

Quoted 13 lines
drivers/mfd/intel_soc_pmic_core.c +1 -1
index 7b50b6b208a5..27e7552a29dd 100644
@@ -147,7 +147,7 @@ static const struct i2c_device_id intel_soc_pmic_i2c_id[] = {
 MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id);
 
 #if defined(CONFIG_ACPI)
-static struct acpi_device_id intel_soc_pmic_acpi_match[] = {
+static const struct acpi_device_id intel_soc_pmic_acpi_match[] = {
 	{"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc},
 	{ },
 };
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog