pinctrl: fix pinconf_dbg_config_write return type
authorVincent Stehlé <vincent.stehle@laposte.net>
Mon, 16 Sep 2013 20:50:32 +0000 (22:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Sep 2013 08:47:03 +0000 (10:47 +0200)
Have pinconf_dbg_config_write() return a ssize_t. This fixes the following
compilation warning:

  drivers/pinctrl/pinconf.c:617:2: warning: initialization from incompatible pointer type [enabled by default]
  drivers/pinctrl/pinconf.c:617:2: warning: (near initialization for ‘pinconf_dbg_pinconfig_fops.write’) [enabled by default]

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf.c

index a138965c01cbc6e4029615bc080790d2338e59e2..1664e7865b9d9f1f735a9efe4e9cc9c6e0df0f28 100644 (file)
@@ -490,7 +490,7 @@ exit:
  * <devicename> <state> <pinname> are values that should match the pinctrl-maps
  * <newvalue> reflects the new config and is driver dependant
  */
-static int pinconf_dbg_config_write(struct file *file,
+static ssize_t pinconf_dbg_config_write(struct file *file,
        const char __user *user_buf, size_t count, loff_t *ppos)
 {
        struct pinctrl_maps *maps_node;