[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150529161642.GC31081@xsjsorenbubuntu>
Date: Fri, 29 May 2015 09:16:42 -0700
From: Sören Brinkmann <soren.brinkmann@...inx.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
CC: <linux-gpio@...r.kernel.org>, Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pinctrl: add pinctrl_register_reason() to return proper
error code
On Fri, 2015-05-29 at 08:30PM +0900, Masahiro Yamada wrote:
> The pinctrl_register() just returns NULL on error, so the callers
> can not know the exact reason of the failure.
>
> Some of the pinctrl drivers return -EINVAL, some -ENODEV, and some
> -ENOMEM on error of pinctrl_register() , although the error code
> might be different from the actual cause of the error.
>
> This new function, pinctrl_register_reason(), helps the drivers get
> and return the appropriate error code.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
> Suggested-by: Arnd Bergmann <arnd@...db.de>
Acked-by: Sören Brinkmann <soren.brinkmann@...inx.com>
Sören
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists