summaryrefslogtreecommitdiff
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-12 14:13:33 +0300
committerBjorn Helgaas <bhelgaas@google.com>2017-10-05 23:53:31 +0300
commit69f2dc24ff32ae61291dc63525d70c06ac9d8ba3 (patch)
treee35d5ce35f982ca784559f22e2849c32da415ce2 /drivers/pci/pci-sysfs.c
parent9e66317d3c92ddaab330c125dfe9d06eee268aff (diff)
downloadlinux-69f2dc24ff32ae61291dc63525d70c06ac9d8ba3.tar.xz
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>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 8e075ea2743e..5aa81ad91a88 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1795,6 +1795,6 @@ static const struct attribute_group *pci_dev_attr_groups[] = {
NULL,
};
-struct device_type pci_dev_type = {
+const struct device_type pci_dev_type = {
.groups = pci_dev_attr_groups,
};