提交 2fc90f61 编写于 作者: A Alexey Zaytsev 提交者: Jesse Barnes

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: NAlexey Zaytsev <zaytsev@altell.ru>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 7a661c6f
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册