diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-11-28 23:35:02 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-12-12 19:06:59 -0500 |
commit | e8894f5578d62f7137a3c4139945e61148728471 (patch) | |
tree | b00a9af7499f4d37f21f55893eb4ed58b3138ed5 | |
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>
-rw-r--r-- | drivers/acpi/pmic/intel_pmic_bxtwc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/pmic/intel_pmic_chtwc.c | 2 |
2 files changed, 2 insertions, 2 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) | |||
400 | &intel_bxtwc_pmic_opregion_data); | 400 | &intel_bxtwc_pmic_opregion_data); |
401 | } | 401 | } |
402 | 402 | ||
403 | static struct platform_device_id bxt_wc_opregion_id_table[] = { | 403 | static const struct platform_device_id bxt_wc_opregion_id_table[] = { |
404 | { .name = "bxt_wcove_region" }, | 404 | { .name = "bxt_wcove_region" }, |
405 | {}, | 405 | {}, |
406 | }; | 406 | }; |
diff --git a/drivers/acpi/pmic/intel_pmic_chtwc.c b/drivers/acpi/pmic/intel_pmic_chtwc.c index 85636d7a9d39..813b829e1c24 100644 --- a/drivers/acpi/pmic/intel_pmic_chtwc.c +++ b/drivers/acpi/pmic/intel_pmic_chtwc.c | |||
@@ -260,7 +260,7 @@ static int intel_cht_wc_pmic_opregion_probe(struct platform_device *pdev) | |||
260 | &intel_cht_wc_pmic_opregion_data); | 260 | &intel_cht_wc_pmic_opregion_data); |
261 | } | 261 | } |
262 | 262 | ||
263 | static struct platform_device_id cht_wc_opregion_id_table[] = { | 263 | static const struct platform_device_id cht_wc_opregion_id_table[] = { |
264 | { .name = "cht_wcove_region" }, | 264 | { .name = "cht_wcove_region" }, |
265 | {}, | 265 | {}, |
266 | }; | 266 | }; |