summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorAlexey Zaytsev <zaytsev@altell.ru>2009-06-24 16:22:30 +0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-29 12:14:51 -0700
commit2fc90f6133a87da8177636866557d4cc5f56e661 (patch)
treeb308f14cd99d8980107a581b729db6b35b940b06 /include/linux/pci.h
parent7a661c6f1082693a7e9627e9ad2d1546a9337fdc (diff)
downloadlinux-2fc90f6133a87da8177636866557d4cc5f56e661.tar.gz
linux-2fc90f6133a87da8177636866557d4cc5f56e661.tar.bz2
linux-2fc90f6133a87da8177636866557d4cc5f56e661.zip
PCI: make pci_name() take const argument
Since this function should never modify it (saves warnings when called with const args too). Signed-off-by: Alexey Zaytsev <zaytsev@altell.ru> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index d304ddf412d0..115fb7ba5089 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1145,7 +1145,7 @@ static inline void pci_set_drvdata(struct pci_dev *pdev, void *data)
/* If you want to know what to call your pci_dev, ask this function.
* Again, it's a wrapper around the generic device.
*/
-static inline const char *pci_name(struct pci_dev *pdev)
+static inline const char *pci_name(const struct pci_dev *pdev)
{
return dev_name(&pdev->dev);
}