Skip to content

Commit 9b877de

Browse files
ArvindYadavCszhang-rui
authored andcommitted
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>
1 parent 68fd77c commit 9b877de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/intel_pch_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int intel_pch_thermal_resume(struct device *device)
387387
return ptd->ops->resume(ptd);
388388
}
389389

390-
static struct pci_device_id intel_pch_thermal_id[] = {
390+
static const struct pci_device_id intel_pch_thermal_id[] = {
391391
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1),
392392
.driver_data = board_hsw, },
393393
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2),

0 commit comments

Comments
 (0)