diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2012-03-18 20:01:09 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-03-19 19:20:37 -0400 |
commit | bf362f750bea1372aff3b5c405b50560a1b28981 (patch) | |
tree | abd00c8eede4e3b32f5e1ef0f14f2668fcd02a2a /include/linux/pci.h | |
parent | adfe39cd9195c35811e062578c4107db49d75436 (diff) |
constify struct pci_dev * in obvious cases
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index a16b1df3def..766afe93d5d 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -746,28 +746,28 @@ int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, | |||
746 | int where, u32 val); | 746 | int where, u32 val); |
747 | struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops); | 747 | struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops); |
748 | 748 | ||
749 | static inline int pci_read_config_byte(struct pci_dev *dev, int where, u8 *val) | 749 | static inline int pci_read_config_byte(const struct pci_dev *dev, int where, u8 *val) |
750 | { | 750 | { |
751 | return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); | 751 | return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); |
752 | } | 752 | } |
753 | static inline int pci_read_config_word(struct pci_dev *dev, int where, u16 *val) | 753 | static inline int pci_read_config_word(const struct pci_dev *dev, int where, u16 *val) |
754 | { | 754 | { |
755 | return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); | 755 | return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); |
756 | } | 756 | } |
757 | static inline int pci_read_config_dword(struct pci_dev *dev, int where, | 757 | static inline int pci_read_config_dword(const struct pci_dev *dev, int where, |
758 | u32 *val) | 758 | u32 *val) |
759 | { | 759 | { |
760 | return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); | 760 | return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); |
761 | } | 761 | } |
762 | static inline int pci_write_config_byte(struct pci_dev *dev, int where, u8 val) | 762 | static inline int pci_write_config_byte(const struct pci_dev *dev, int where, u8 val) |
763 | { | 763 | { |
764 | return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); | 764 | return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); |
765 | } | 765 | } |
766 | static inline int pci_write_config_word(struct pci_dev *dev, int where, u16 val) | 766 | static inline int pci_write_config_word(const struct pci_dev *dev, int where, u16 val) |
767 | { | 767 | { |
768 | return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); | 768 | return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); |
769 | } | 769 | } |
770 | static inline int pci_write_config_dword(struct pci_dev *dev, int where, | 770 | static inline int pci_write_config_dword(const struct pci_dev *dev, int where, |
771 | u32 val) | 771 | u32 val) |
772 | { | 772 | { |
773 | return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); | 773 | return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); |