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)
commita01cd17000a4eb35060666f181f1d46832b59030
tree43e8d65b869a3cb34c10159e5467e53d1c80d62b
parent9b13a4ca8d2c44ca659d8df65f15c48c2e9b9316
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