From: Arvind Yadav Date: Wed, 2 Aug 2017 17:58:40 +0000 (+0530) Subject: thermal: intel_pch_thermal: constify pci_device_id. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b877de3e05593540d7cc120ae3741937d3091c9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git thermal: intel_pch_thermal: constify pci_device_id. pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel_pch_thermal.c index 8c39206e7d0b..9e8fb782b521 100644 --- a/drivers/thermal/intel_pch_thermal.c +++ b/drivers/thermal/intel_pch_thermal.c @@ -387,7 +387,7 @@ static int intel_pch_thermal_resume(struct device *device) return ptd->ops->resume(ptd); } -static struct pci_device_id intel_pch_thermal_id[] = { +static const struct pci_device_id intel_pch_thermal_id[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1), .driver_data = board_hsw, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2),