On Tue, Oct 3, 2023 at 5:21 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > > On Tue, Oct 3, 2023 at 5:51 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote: > > > > From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> > > > > Old variants of pinctrl GPIO helpers are no longer used. Let's remove > > them as well as convert all static functions in pinctrl/core.c that > > still deal with global GPIO numbers to using the gpio_chip + offset > > pairs. > > This patch does three thighs as I see it. > I'd argue it just fold the code that lived in old functions into the new ones... > First of all, it silently converts to RAII. Please, do this separately. ... and while at it, it already switches to SBRM because why copy outdated code. > Second, it shuffles a lot of code between old and new implementations. > What I prefer to see is what the subject tells: only "-" (minus) > lines. > Third, it will become easier if you name the "new" functions better to > begin with, it will help a lot here. > I'll wait for Linus to tell me if he prefers one big squashed commit or a fine-grained history (I prefer the latter) before spending time splitting this commit. Bart > -- > With Best Regards, > Andy Shevchenko