Skip to content

Commit e8894f5

Browse files
ArvindYadavCsrafaeljw
authored andcommitted
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 <[email protected]> Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 50c4c4e commit e8894f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/acpi/pmic/intel_pmic_bxtwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static int intel_bxtwc_pmic_opregion_probe(struct platform_device *pdev)
400400
&intel_bxtwc_pmic_opregion_data);
401401
}
402402

403-
static struct platform_device_id bxt_wc_opregion_id_table[] = {
403+
static const struct platform_device_id bxt_wc_opregion_id_table[] = {
404404
{ .name = "bxt_wcove_region" },
405405
{},
406406
};

drivers/acpi/pmic/intel_pmic_chtwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static int intel_cht_wc_pmic_opregion_probe(struct platform_device *pdev)
260260
&intel_cht_wc_pmic_opregion_data);
261261
}
262262

263-
static struct platform_device_id cht_wc_opregion_id_table[] = {
263+
static const struct platform_device_id cht_wc_opregion_id_table[] = {
264264
{ .name = "cht_wcove_region" },
265265
{},
266266
};

0 commit comments

Comments
 (0)