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>
This commit is contained in:
@@ -90,7 +90,7 @@ struct alpha_machine_vector
|
|||||||
void (*kill_arch)(int);
|
void (*kill_arch)(int);
|
||||||
|
|
||||||
u8 (*pci_swizzle)(struct pci_dev *, u8 *);
|
u8 (*pci_swizzle)(struct pci_dev *, u8 *);
|
||||||
int (*pci_map_irq)(struct pci_dev *, u8, u8);
|
int (*pci_map_irq)(const struct pci_dev *, u8, u8);
|
||||||
struct pci_ops *pci_ops;
|
struct pci_ops *pci_ops;
|
||||||
|
|
||||||
struct _alpha_agp_info *(*agp_info)(void);
|
struct _alpha_agp_info *(*agp_info)(void);
|
||||||
|
@@ -366,7 +366,7 @@ clipper_init_irq(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static int __init
|
static int __init
|
||||||
isa_irq_fixup(struct pci_dev *dev, int irq)
|
isa_irq_fixup(const struct pci_dev *dev, int irq)
|
||||||
{
|
{
|
||||||
u8 irq8;
|
u8 irq8;
|
||||||
|
|
||||||
|
@@ -746,28 +746,28 @@ int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn,
|
|||||||
int where, u32 val);
|
int where, u32 val);
|
||||||
struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops);
|
struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops);
|
||||||
|
|
||||||
static inline int pci_read_config_byte(struct pci_dev *dev, int where, u8 *val)
|
static inline int pci_read_config_byte(const struct pci_dev *dev, int where, u8 *val)
|
||||||
{
|
{
|
||||||
return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val);
|
return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val);
|
||||||
}
|
}
|
||||||
static inline int pci_read_config_word(struct pci_dev *dev, int where, u16 *val)
|
static inline int pci_read_config_word(const struct pci_dev *dev, int where, u16 *val)
|
||||||
{
|
{
|
||||||
return pci_bus_read_config_word(dev->bus, dev->devfn, where, val);
|
return pci_bus_read_config_word(dev->bus, dev->devfn, where, val);
|
||||||
}
|
}
|
||||||
static inline int pci_read_config_dword(struct pci_dev *dev, int where,
|
static inline int pci_read_config_dword(const struct pci_dev *dev, int where,
|
||||||
u32 *val)
|
u32 *val)
|
||||||
{
|
{
|
||||||
return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val);
|
return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val);
|
||||||
}
|
}
|
||||||
static inline int pci_write_config_byte(struct pci_dev *dev, int where, u8 val)
|
static inline int pci_write_config_byte(const struct pci_dev *dev, int where, u8 val)
|
||||||
{
|
{
|
||||||
return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val);
|
return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val);
|
||||||
}
|
}
|
||||||
static inline int pci_write_config_word(struct pci_dev *dev, int where, u16 val)
|
static inline int pci_write_config_word(const struct pci_dev *dev, int where, u16 val)
|
||||||
{
|
{
|
||||||
return pci_bus_write_config_word(dev->bus, dev->devfn, where, val);
|
return pci_bus_write_config_word(dev->bus, dev->devfn, where, val);
|
||||||
}
|
}
|
||||||
static inline int pci_write_config_dword(struct pci_dev *dev, int where,
|
static inline int pci_write_config_dword(const struct pci_dev *dev, int where,
|
||||||
u32 val)
|
u32 val)
|
||||||
{
|
{
|
||||||
return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val);
|
return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val);
|
||||||
|
Reference in New Issue
Block a user