mfd: intel_soc_pmic: Constify ACPI device ids
diff mbox series

Message ID 1434198051-8121-1-git-send-email-minipli@googlemail.com
State New, archived
Headers show
Series
  • mfd: intel_soc_pmic: Constify ACPI device ids
Related show

Commit Message

Mathias Krause June 13, 2015, 12:20 p.m. UTC
Constify the ACPI device ID array, it doesn't need to be writable at
runtime.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Yang, Bin <bin.yang@intel.com>
Cc: Zhu, Lejun <lejun.zhu@linux.intel.com>
---
 drivers/mfd/intel_soc_pmic_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lee Jones June 24, 2015, 10:59 a.m. UTC | #1
On Sat, 13 Jun 2015, Mathias Krause wrote:

> Constify the ACPI device ID array, it doesn't need to be writable at
> runtime.
> 
> Signed-off-by: Mathias Krause <minipli@googlemail.com>
> Cc: Yang, Bin <bin.yang@intel.com>
> Cc: Zhu, Lejun <lejun.zhu@linux.intel.com>
> ---
>  drivers/mfd/intel_soc_pmic_core.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied for v4.3, thanks.

> diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
> index 7b50b6b208a5..27e7552a29dd 100644
> --- a/drivers/mfd/intel_soc_pmic_core.c
> +++ b/drivers/mfd/intel_soc_pmic_core.c
> @@ -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},
>  	{ },
>  };

Patch
diff mbox series

diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
index 7b50b6b208a5..27e7552a29dd 100644
--- a/drivers/mfd/intel_soc_pmic_core.c
+++ b/drivers/mfd/intel_soc_pmic_core.c
@@ -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},
 	{ },
 };