aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 65deed8bfc06..211fd418f48f 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -56,14 +56,14 @@ extern int pci_user_write_config_word(struct pci_dev *dev, int where, u16 val);
56extern int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val); 56extern int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val);
57 57
58struct pci_vpd_ops { 58struct pci_vpd_ops {
59 int (*read)(struct pci_dev *dev, int pos, int size, char *buf); 59 ssize_t (*read)(struct pci_dev *dev, loff_t pos, size_t count, void *buf);
60 int (*write)(struct pci_dev *dev, int pos, int size, const char *buf); 60 ssize_t (*write)(struct pci_dev *dev, loff_t pos, size_t count, const void *buf);
61 void (*release)(struct pci_dev *dev); 61 void (*release)(struct pci_dev *dev);
62}; 62};
63 63
64struct pci_vpd { 64struct pci_vpd {
65 unsigned int len; 65 unsigned int len;
66 struct pci_vpd_ops *ops; 66 const struct pci_vpd_ops *ops;
67 struct bin_attribute *attr; /* descriptor for sysfs VPD entry */ 67 struct bin_attribute *attr; /* descriptor for sysfs VPD entry */
68}; 68};
69 69