Re: [PATCH RESEND] net: rfkill: gpio: Add ACPI default GPIO driver mappings

2014-10-28 Thread Rafael J. Wysocki
On Tuesday, October 28, 2014 12:03:48 PM Mika Westerberg wrote: > The driver uses devm_gpiod_get_index(..., index) so that the index refers > directly to the GpioIo resource under the ACPI device. The problem with > this is that if the ordering changes we get wrong GPIOs. > > With ACPI 5.1 _DSD we

[PATCH RESEND] net: rfkill: gpio: Add ACPI default GPIO driver mappings

2014-10-28 Thread Mika Westerberg
The driver uses devm_gpiod_get_index(..., index) so that the index refers directly to the GpioIo resource under the ACPI device. The problem with this is that if the ordering changes we get wrong GPIOs. With ACPI 5.1 _DSD we can now use names instead to reference GPIOs analogous to Device Tree. Ho