diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 13:58:40 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2017-08-08 09:31:43 -0400 |
commit | 9b877de3e05593540d7cc120ae3741937d3091c9 (patch) | |
tree | 8ccb179658125a65c6a4b1164aca19d605c45eac | |
parent | 68fd77cf8a4b045594231f07e5fc92e1a34c0a9e (diff) |
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 <linux/pci.h> work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/intel_pch_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
387 | return ptd->ops->resume(ptd); | 387 | return ptd->ops->resume(ptd); |
388 | } | 388 | } |
389 | 389 | ||
390 | static struct pci_device_id intel_pch_thermal_id[] = { | 390 | static const struct pci_device_id intel_pch_thermal_id[] = { |
391 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1), | 391 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1), |
392 | .driver_data = board_hsw, }, | 392 | .driver_data = board_hsw, }, |
393 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2), | 393 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2), |