summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKieran Morrissey <kieran@mgpenguin.net>2004-01-29 01:12:59 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-29 01:12:59 -0800
commit6a1bd1266701eb84c11c5da96ec03fb1c0debc2c (patch)
tree394da9ac4a86ef2f5e55a4da448187970beb5f3f /include/linux
parentb323e1dfd14fa4fed77f9360f16e80f23ed917f3 (diff)
[PATCH] PCI: name length change
- Changes gen-devlist.c to truncate long device names rather than reject the database - Changes PCI_NAME_SIZE to 96 (and PCI_NAME_HALF to 43) to allow all current pci.ids names to fit - Modifies gen-devlist.c to truncate at 89 characters rather than 79 - allows for two digit instance numbers to be added to the name as well while staying within the 96 characters allocated. No names in the current pci.ids are any longer than this. - Modifies names.c to no longer limit device name length when displaying both vendor and device name; the truncation is done by gen-devlist.c.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 3ffb95a8f4d2..bc51ca9edef1 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -425,8 +425,8 @@ struct pci_dev {
unsigned int transparent:1; /* Transparent PCI bridge */
unsigned int multifunction:1;/* Part of multi-function device */
#ifdef CONFIG_PCI_NAMES
-#define PCI_NAME_SIZE 50
-#define PCI_NAME_HALF __stringify(20) /* less than half to handle slop */
+#define PCI_NAME_SIZE 96
+#define PCI_NAME_HALF __stringify(43) /* less than half to handle slop */
char pretty_name[PCI_NAME_SIZE]; /* pretty name for users to see */
#endif
};