Re: [PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Mika Westerberg
On Tue, Nov 28, 2017 at 03:31:50PM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav

Re: [PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Mika Westerberg
On Tue, Nov 28, 2017 at 03:31:50PM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav

[PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +-

[PATCH 1/2] ACPI / PMIC: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +- 1 file changed, 1