Re: [PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:12PM +0200, Andy Shevchenko wrote: > By some reason acpi_find_gpio() and acpi_gpio_count() have compared connection > ID to "gpios" when tries to check if suffix is needed or not. > > Don't do any assumptions about what connection ID can be and, when defined, > use

Re: [PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 09:46:12PM +0200, Andy Shevchenko wrote: > By some reason acpi_find_gpio() and acpi_gpio_count() have compared connection > ID to "gpios" when tries to check if suffix is needed or not. > > Don't do any assumptions about what connection ID can be and, when defined, > use

[PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version

2017-03-23 Thread Andy Shevchenko
By some reason acpi_find_gpio() and acpi_gpio_count() have compared connection ID to "gpios" when tries to check if suffix is needed or not. Don't do any assumptions about what connection ID can be and, when defined, use it only with suffix as it's done in the device tree version. Signed-off-by:

[PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version

2017-03-23 Thread Andy Shevchenko
By some reason acpi_find_gpio() and acpi_gpio_count() have compared connection ID to "gpios" when tries to check if suffix is needed or not. Don't do any assumptions about what connection ID can be and, when defined, use it only with suffix as it's done in the device tree version. Signed-off-by: