]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Constify pci_dev_type structure
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 12 Sep 2017 11:13:33 +0000 (16:43 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Oct 2017 20:53:31 +0000 (15:53 -0500)
commit1d5f62e3fa44c5caf36d9334d68fb09a223b810f
treee35d5ce35f982ca784559f22e2849c32da415ce2
parent3fb5e40d11aacb853b61d450dad9651aef613f01
PCI: Constify pci_dev_type structure

Make this const as it not modified in the file referencing it.  It is only
stored in a const field 'type' of a device structure.  Also, add const to
the variable declaration in the header file.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-sysfs.c
drivers/pci/pci.h