Here is the full patch after your review:
Fixing coding style issues in drivers/staging/wilc1000/wilc_debugfs.c

Thank you about the information for split strings, I didn't find the
right way to do it.

Best,
V.

Signed-off-by: Vincent Siles <vincent.si...@provenrun.com>
---
 drivers/staging/wilc1000/wilc_debugfs.c | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_debugfs.c 
b/drivers/staging/wilc1000/wilc_debugfs.c
index 7d32de9..d651b20 100644
--- a/drivers/staging/wilc1000/wilc_debugfs.c
+++ b/drivers/staging/wilc1000/wilc_debugfs.c
@@ -20,7 +20,7 @@
 static struct dentry *wilc_dir;
 
 /*
- * 
--------------------------------------------------------------------------------
+ * ----------------------------------------------------------------------------
  */
 #define DEBUG           BIT(0)
 #define INFO            BIT(1)
@@ -32,10 +32,11 @@
 EXPORT_SYMBOL_GPL(WILC_DEBUG_LEVEL);
 
 /*
- * 
--------------------------------------------------------------------------------
+ * ----------------------------------------------------------------------------
  */
 
-static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf, 
size_t count, loff_t *ppos)
+static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf,
+                                    size_t count, loff_t *ppos)
 {
        char buf[128];
        int res = 0;
@@ -44,13 +45,15 @@ static ssize_t wilc_debug_level_read(struct file *file, 
char __user *userbuf, si
        if (*ppos > 0)
                return 0;
 
-       res = scnprintf(buf, sizeof(buf), "Debug Level: %x\n", 
atomic_read(&WILC_DEBUG_LEVEL));
+       res = scnprintf(buf, sizeof(buf), "Debug Level: %x\n",
+                       atomic_read(&WILC_DEBUG_LEVEL));
 
        return simple_read_from_buffer(userbuf, count, ppos, buf, res);
 }
 
-static ssize_t wilc_debug_level_write(struct file *filp, const char __user 
*buf,
-                                     size_t count, loff_t *ppos)
+static ssize_t wilc_debug_level_write(struct file *filp,
+                                     const char __user *buf, size_t count,
+                                     loff_t *ppos)
 {
        int flag = 0;
        int ret;
@@ -60,7 +63,8 @@ static ssize_t wilc_debug_level_write(struct file *filp, 
const char __user *buf,
                return ret;
 
        if (flag > DBG_LEVEL_ALL) {
-               pr_info("%s, value (0x%08x) is out of range, stay previous flag 
(0x%08x)\n", __func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
+               pr_info("%s, value (0x%08x) is out of range, stay previous flag 
(0x%08x)\n",
+                       __func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
                return -EINVAL;
        }
 
@@ -75,7 +79,7 @@ static ssize_t wilc_debug_level_write(struct file *filp, 
const char __user *buf,
 }
 
 /*
- * 
--------------------------------------------------------------------------------
+ * ----------------------------------------------------------------------------
  */
 
 #define FOPS(_open, _read, _write, _poll) { \
@@ -94,7 +98,12 @@ struct wilc_debugfs_info_t {
 };
 
 static struct wilc_debugfs_info_t debugfs_info[] = {
-       { "wilc_debug_level",   0666,   (DEBUG | ERR), FOPS(NULL, 
wilc_debug_level_read, wilc_debug_level_write, NULL), },
+       {
+               "wilc_debug_level",
+               0666,
+               (DEBUG | ERR),
+               FOPS(NULL, wilc_debug_level_read, wilc_debug_level_write, NULL),
+       },
 };
 
 static int __init wilc_debugfs_init(void)
-- 
1.9.1

Attachment: signature.asc
Description: Digital signature

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to