From: Vincent Stehlé Date: Mon, 16 Sep 2013 20:50:32 +0000 (+0200) Subject: pinctrl: fix pinconf_dbg_config_write return type X-Git-Tag: next-20130927~20^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3b59e432ec9c093311e0ad057e330e04feb79007;p=karo-tx-linux.git pinctrl: fix pinconf_dbg_config_write return type 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é Cc: Linus Walleij Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index a138965c01cb..1664e7865b9d 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c @@ -490,7 +490,7 @@ exit: * are values that should match the pinctrl-maps * 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;