[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMRc=Mfh5CcftXUStGOXvUF-s3aNxnaNM0sDt72LKrBfttqitQ@mail.gmail.com>
Date: Mon, 5 Feb 2024 14:19:10 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, Kent Gibson <warthog618@...il.com>,
Alex Elder <elder@...aro.org>, Geert Uytterhoeven <geert+renesas@...der.be>,
"Paul E . McKenney" <paulmck@...nel.org>, Wolfram Sang <wsa@...-dreams.de>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH v2 08/23] gpio: sysfs: use gpio_device_find() to iterate
over existing devices
On Mon, Feb 5, 2024 at 1:36 PM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
>
> On Mon, Feb 05, 2024 at 10:34:03AM +0100, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> >
> > With the list of GPIO devices now protected with SRCU we can use
> > gpio_device_find() to traverse it from sysfs.
>
> ...
>
> > +static int gpiofind_sysfs_register(struct gpio_chip *gc, void *data)
> > +{
> > + struct gpio_device *gdev = gc->gpiodev;
> > + int ret;
> > +
> > + if (gdev->mockdev)
> > + return 0;
> > +
> > + ret = gpiochip_sysfs_register(gdev);
> > + if (ret)
> > + chip_err(gc, "failed to register the sysfs entry: %d\n", ret);
>
> > + return 0;
>
> ???
>
Not sure what the ... and ??? mean? The commit message should have
read "... traverse it from gpiofind_sysfs_register()" I agree but the
latter?
Bart
> > +}
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
Powered by blists - more mailing lists