]> 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)
commitc92aeae645cb7703a063f561e3131e13db327ecc
treee35d5ce35f982ca784559f22e2849c32da415ce2
parentb888c937506147d5d77f24afb038b53ae6e1b4f2
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