Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fc90f61 authored by Alexey Zaytsev's avatar Alexey Zaytsev Committed by Jesse Barnes
Browse files

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: default avatarAlexey Zaytsev <zaytsev@altell.ru>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 7a661c6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}