This commit fixes coding style issues including long lines
and string across multiple lines for driver

Signed-off-by: Adnan Ali <[email protected]>
---
 drivers/staging/vme/devices/vme_user.c |   38 ++++++++++++++++----------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/drivers/staging/vme/devices/vme_user.c 
b/drivers/staging/vme/devices/vme_user.c
index e24a6f9..3a55621 100644
--- a/drivers/staging/vme/devices/vme_user.c
+++ b/drivers/staging/vme/devices/vme_user.c
@@ -397,7 +397,6 @@ static ssize_t vme_user_write(struct file *file, const char 
__user *buf,
        default:
                retval = -EINVAL;
        }
-       
        mutex_unlock(&image[minor].mutex);
 
        if (retval > 0)
@@ -504,8 +503,8 @@ static int vme_user_ioctl(struct inode *inode, struct file 
*file,
                        copied = copy_to_user(argp, &master,
                                sizeof(struct vme_master));
                        if (copied != 0) {
-                               printk(KERN_WARNING "Partial copy to "
-                                       "userspace\n");
+                               printk(KERN_WARNING
+                                       "Partial copy to userspace\n");
                                return -EFAULT;
                        }
 
@@ -516,8 +515,8 @@ static int vme_user_ioctl(struct inode *inode, struct file 
*file,
 
                        copied = copy_from_user(&master, argp, sizeof(master));
                        if (copied != 0) {
-                               printk(KERN_WARNING "Partial copy from "
-                                       "userspace\n");
+                               printk(KERN_WARNING
+                                       "Partial copy from userspace\n");
                                return -EFAULT;
                        }
 
@@ -547,8 +546,8 @@ static int vme_user_ioctl(struct inode *inode, struct file 
*file,
                        copied = copy_to_user(argp, &slave,
                                sizeof(struct vme_slave));
                        if (copied != 0) {
-                               printk(KERN_WARNING "Partial copy to "
-                                       "userspace\n");
+                               printk(KERN_WARNING
+                                       "Partial copy to userspace\n");
                                return -EFAULT;
                        }
 
@@ -559,8 +558,8 @@ static int vme_user_ioctl(struct inode *inode, struct file 
*file,
 
                        copied = copy_from_user(&slave, argp, sizeof(slave));
                        if (copied != 0) {
-                               printk(KERN_WARNING "Partial copy from "
-                                       "userspace\n");
+                               printk(KERN_WARNING
+                                       "Partial copy from userspace\n");
                                return -EFAULT;
                        }
 
@@ -708,8 +707,9 @@ static int __devinit vme_user_probe(struct vme_dev *vdev)
        err = register_chrdev_region(MKDEV(VME_MAJOR, 0), VME_DEVS,
                driver_name);
        if (err) {
-               printk(KERN_WARNING "%s: Error getting Major Number %d for "
-               "driver.\n", driver_name, VME_MAJOR);
+               printk(KERN_WARNING
+                       "%s: Error getting Major Number %d for driver.\n",
+                        driver_name, VME_MAJOR);
                goto err_region;
        }
 
@@ -733,16 +733,16 @@ static int __devinit vme_user_probe(struct vme_dev *vdev)
                image[i].resource = vme_slave_request(vme_user_bridge,
                        VME_A24, VME_SCT);
                if (image[i].resource == NULL) {
-                       printk(KERN_WARNING "Unable to allocate slave "
-                               "resource\n");
+                       printk(KERN_WARNING
+                               "Unable to allocate slave resource\n");
                        goto err_slave;
                }
                image[i].size_buf = PCI_BUF_SIZE;
                image[i].kern_buf = vme_alloc_consistent(image[i].resource,
                        image[i].size_buf, &image[i].pci_buf);
                if (image[i].kern_buf == NULL) {
-                       printk(KERN_WARNING "Unable to allocate memory for "
-                               "buffer\n");
+                       printk(KERN_WARNING
+                               "Unable to allocate memory for buffer\n");
                        image[i].pci_buf = 0;
                        vme_slave_free(image[i].resource);
                        err = -ENOMEM;
@@ -759,15 +759,15 @@ static int __devinit vme_user_probe(struct vme_dev *vdev)
                image[i].resource = vme_master_request(vme_user_bridge,
                        VME_A32, VME_SCT, VME_D32);
                if (image[i].resource == NULL) {
-                       printk(KERN_WARNING "Unable to allocate master "
-                               "resource\n");
+                       printk(KERN_WARNING
+                               "Unable to allocate master resource\n");
                        goto err_master;
                }
                image[i].size_buf = PCI_BUF_SIZE;
                image[i].kern_buf = kmalloc(image[i].size_buf, GFP_KERNEL);
                if (image[i].kern_buf == NULL) {
-                       printk(KERN_WARNING "Unable to allocate memory for "
-                               "master window buffers\n");
+                       printk(KERN_WARNING
+                               "Unable to allocate memory for master window 
buffers\n");
                        err = -ENOMEM;
                        goto err_master_buf;
                }
-- 
1.7.4.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to