lkml.org 
[lkml]   [2024]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] gpiolib: use dev_err when gpiod_configure_flags failed
Date
> Subject: Re: [PATCH] gpiolib: use dev_err when gpiod_configure_flags failed
>
> On Fri, Mar 15, 2024 at 3:02 AM Peng Fan (OSS) <peng.fan@oss.nxp.com>
> wrote:
> >
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > Using dev_err to show error message will make life easier.
>
> dev_err()
>
> an error
>
> ...
>
> It's unclear what the use case is and how this does make life easier.
> We need to know more!

I forgot to add gpio-ranges in gpio node, then it always fail in my driver
probe to configure pinctrl. So if using dev_err(), it will be easier for
me to locate the error point.

Thanks,
Peng.

>
> --
> With Best Regards,
> Andy Shevchenko
\
 
 \ /
  Last update: 2024-05-27 15:52    [W:0.228 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site