Re: [PATCH v3 05/15] gpio / ACPI: Add support for _DSD device properties

2014-10-05 Thread Rafael J. Wysocki
On Sunday, October 05, 2014 07:36:04 PM Alexandre Courbot wrote: > On Wed, Oct 1, 2014 at 5:03 PM, Arnd Bergmann wrote: > > On Wednesday 01 October 2014 04:12:41 Rafael J. Wysocki wrote: > >> + static const char * const suffixes[] = { "gpios", "gpio" }; > >> + struct acpi_device *adev

Re: [PATCH v3 05/15] gpio / ACPI: Add support for _DSD device properties

2014-10-05 Thread Alexandre Courbot
On Wed, Oct 1, 2014 at 5:03 PM, Arnd Bergmann wrote: > On Wednesday 01 October 2014 04:12:41 Rafael J. Wysocki wrote: >> + static const char * const suffixes[] = { "gpios", "gpio" }; >> + struct acpi_device *adev = ACPI_COMPANION(dev); >> struct acpi_gpio_info info; >>

Re: [PATCH v3 05/15] gpio / ACPI: Add support for _DSD device properties

2014-10-01 Thread Arnd Bergmann
On Wednesday 01 October 2014 04:12:41 Rafael J. Wysocki wrote: > + static const char * const suffixes[] = { "gpios", "gpio" }; > + struct acpi_device *adev = ACPI_COMPANION(dev); > struct acpi_gpio_info info; > struct gpio_desc *desc; > + char propname[32]; > +

[PATCH v3 05/15] gpio / ACPI: Add support for _DSD device properties

2014-09-30 Thread Rafael J. Wysocki
From: Mika Westerberg With release of ACPI 5.1 and _DSD method we can finally name GPIOs (and other things as well) returned by _CRS. Previously we were only able to use integer index to find the corresponding GPIO, which is pretty error prone if the order changes. With _DSD we can now query GPI