]> git.baikalelectronics.ru Git - kernel.git/commit
Input: soc_button_array - use NULL for GPIO connection ID
authorHans de Goede <hdegoede@redhat.com>
Thu, 9 Mar 2017 17:58:30 +0000 (09:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Mar 2017 18:01:04 +0000 (10:01 -0800)
commitf5f8748c2946fb43c1db45e7b7548d1ccefb061e
tree43e8d65b869a3cb34c10159e5467e53d1c80d62b
parent85b0c655508e4b285b9829cc02db47391c973169
Input: soc_button_array - use NULL for GPIO connection ID

The gpiolib-acpi code is becoming more strict and connection-IDs
may only be used with devices which have a _DSD with matching IDs
in there. Since the soc_button_array ACPI binding is pure index
based pass in NULL as connection-ID to avoid the more strict cheks
resulting in gpiod_count and gpiod_get_index not returning any gpios.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/soc_button_array.c