[lkml]   [2015]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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 <>
> Suggested-by: Arnd Bergmann <>
Acked-by: Sören Brinkmann <>


 \ /
  Last update: 2015-05-29 19:01    [W:0.063 / U:12.940 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site