]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/pci/proc.c
Merge remote-tracking branches 'spi/topic/adi-v3', 'spi/topic/atmel', 'spi/topic...
[karo-tx-linux.git] / drivers / pci / proc.c
index 46d1378f2e9ebd1aeb6ee8252af551a0350bb80b..3f155e78513fd4171dc4b57c5b7b3b41e7afea20 100644 (file)
 
 static int proc_initialized;   /* = 0 */
 
-static loff_t
-proc_bus_pci_lseek(struct file *file, loff_t off, int whence)
+static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence)
 {
        struct pci_dev *dev = PDE_DATA(file_inode(file));
        return fixed_size_llseek(file, off, whence, dev->cfg_size);
 }
 
-static ssize_t
-proc_bus_pci_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
+static ssize_t proc_bus_pci_read(struct file *file, char __user *buf,
+                                size_t nbytes, loff_t *ppos)
 {
        struct pci_dev *dev = PDE_DATA(file_inode(file));
        unsigned int pos = *ppos;
@@ -108,8 +107,8 @@ proc_bus_pci_read(struct file *file, char __user *buf, size_t nbytes, loff_t *pp
        return nbytes;
 }
 
-static ssize_t
-proc_bus_pci_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos)
+static ssize_t proc_bus_pci_write(struct file *file, const char __user *buf,
+                                 size_t nbytes, loff_t *ppos)
 {
        struct inode *ino = file_inode(file);
        struct pci_dev *dev = PDE_DATA(ino);
@@ -413,7 +412,7 @@ int pci_proc_detach_device(struct pci_dev *dev)
        return 0;
 }
 
-int pci_proc_detach_bus(struct pci_busbus)
+int pci_proc_detach_bus(struct pci_bus *bus)
 {
        proc_remove(bus->procdir);
        return 0;
@@ -423,6 +422,7 @@ static int proc_bus_pci_dev_open(struct inode *inode, struct file *file)
 {
        return seq_open(file, &proc_bus_pci_devices_op);
 }
+
 static const struct file_operations proc_bus_pci_dev_operations = {
        .owner          = THIS_MODULE,
        .open           = proc_bus_pci_dev_open,
@@ -443,6 +443,4 @@ static int __init pci_proc_init(void)
 
        return 0;
 }
-
 device_initcall(pci_proc_init);
-