]> asedeno.scripts.mit.edu Git - linux.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)
commit69f2dc24ff32ae61291dc63525d70c06ac9d8ba3
treee35d5ce35f982ca784559f22e2849c32da415ce2
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
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