summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-08-20 02:48:01 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-08-20 02:48:01 -0700
commit75d01c2efed5f5fcb8d0e65619cb5829decd193d (patch)
treeeb63da3fa243116b2e0ed2d0d98e3e5474357cf2 /include/linux
parenta6e676b01a0fcb7d640aa423184fa290e4b865fd (diff)
[PATCH] PCI: add PCI_NAME_SIZE instead of using DEVICE_NAME_SIZE
based on a patch from OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 55e296dd57e3..287f8ebc4bf2 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -420,7 +420,9 @@ struct pci_dev {
unsigned int transparent:1; /* Transparent PCI bridge */
unsigned int multifunction:1;/* Part of multi-function device */
#ifdef CONFIG_PCI_NAMES
- char pretty_name[DEVICE_NAME_SIZE]; /* pretty name for users to see */
+#define PCI_NAME_SIZE 50
+#define PCI_NAME_HALF __stringify(20) /* less than half to handle slop */
+ char pretty_name[PCI_NAME_SIZE]; /* pretty name for users to see */
#endif
};