[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aF68N4ZYKupWHJoL@black.fi.intel.com>
Date: Fri, 27 Jun 2025 18:43:51 +0300
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Ahmad Fatoum <a.fatoum@...gutronix.de>,
Kent Gibson <warthog618@...il.com>,
Jan Lübbe <jlu@...gutronix.de>,
Marek Vasut <marex@...x.de>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Linus Walleij <linus.walleij@...aro.org>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH v2 5/9] gpio: sysfs: rename the data variable in
gpiod_(un)export()
On Mon, Jun 23, 2025 at 10:59:53AM +0200, Bartosz Golaszewski wrote:
>
> In preparation for future commits which will make use of descriptor AND
> GPIO-device data in the same functions rename the former from data to
> desc_data separately which will make future changes smaller and easier
> to read.
...
> + attrs = desc_data->attrs;
> + desc_data->attr_group.is_visible = gpio_is_visible;
> + attrs[GPIO_SYSFS_LINE_ATTR_DIRECTION] = &desc_data->dir_attr.attr;
> + attrs[GPIO_SYSFS_LINE_ATTR_VALUE] = &desc_data->val_attr.attr;
> + attrs[GPIO_SYSFS_LINE_ATTR_EDGE] = &desc_data->edge_attr.attr;
> attrs[GPIO_SYSFS_LINE_ATTR_ACTIVE_LOW] =
> - &data->active_low_attr.attr;
> + &desc_data->active_low_attr.attr;
These were added in the previous patch and immediately got rewritten?!
Sounds like a wrong patch order.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists