summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexey Zaytsev <zaytsev@altell.ru>2009-06-24 14:22:30 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-29 21:14:51 +0200
commit2fc90f6133a87da8177636866557d4cc5f56e661 (patch)
treeb308f14cd99d8980107a581b729db6b35b940b06 /include
parentPCI: More PATA quirks for not entering D3 (diff)
downloadlinux-2fc90f6133a87da8177636866557d4cc5f56e661.tar.xz
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')
-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);
}