On Tue, Jan 7, 2020 at 3:17 PM Pavel Machek <pavel@xxxxxx> wrote: > Ok. But what is motivation for doing this? Zip from drivers/gpio/TODO: Starting with commit 79a9becda894 the GPIO subsystem embarked on a journey to move away from the global GPIO numberspace and toward a decriptor-based approach. This means that GPIO consumers, drivers and machine descriptions ideally have no use or idea of the global GPIO numberspace that has/was used in the inception of the GPIO subsystem. The motivation for that in turn is that the GPIO number space has become unmanageable and is also unpredictable due to factors such as probe ordering and the introduction of -EPROBE_DEFER. The number space issue is the same as to why irq is moving away from irq numbers to IRQ descriptors. > Was this tested? No, I change a lot of code I can't test, I rely on volunteers to test it, it seems Simon volunteered. Yours, Linus Walleij