diff options
author | Arvind Yadav | 2017-11-29 10:05:02 +0530 |
---|---|---|
committer | Rafael J. Wysocki | 2017-12-13 01:06:59 +0100 |
commit | e8894f5578d62f7137a3c4139945e61148728471 (patch) | |
tree | b00a9af7499f4d37f21f55893eb4ed58b3138ed5 /drivers/acpi/pmic/intel_pmic_bxtwc.c | |
parent | 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff) |
ACPI / PMIC: constify platform_device_id
platform_device_id are not supposed to change at runtime. All functions
working with platform_device_id provided by <linux/platform_device.h>
work with const platform_device_id. So mark the non-const structs as
const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pmic/intel_pmic_bxtwc.c')
-rw-r--r-- | drivers/acpi/pmic/intel_pmic_bxtwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pmic/intel_pmic_bxtwc.c b/drivers/acpi/pmic/intel_pmic_bxtwc.c index 90011aad4d20..2012d1d87dc3 100644 --- a/drivers/acpi/pmic/intel_pmic_bxtwc.c +++ b/drivers/acpi/pmic/intel_pmic_bxtwc.c @@ -400,7 +400,7 @@ static int intel_bxtwc_pmic_opregion_probe(struct platform_device *pdev) &intel_bxtwc_pmic_opregion_data); } -static struct platform_device_id bxt_wc_opregion_id_table[] = { +static const struct platform_device_id bxt_wc_opregion_id_table[] = { { .name = "bxt_wcove_region" }, {}, }; |