summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pmic/intel_pmic_bxtwc.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-11-29 10:05:02 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-13 01:06:59 +0100
commite8894f5578d62f7137a3c4139945e61148728471 (patch)
treeb00a9af7499f4d37f21f55893eb4ed58b3138ed5 /drivers/acpi/pmic/intel_pmic_bxtwc.c
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff)
downloadlinux-e8894f5578d62f7137a3c4139945e61148728471.tar.bz2
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.c2
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" },
{},
};