Benjamin Tissoires 3d5a9437a6 Input: soc_button_array - bail out earlier if gpiod_count is zero
The PNP0C40 device of the Surface 3 doesn't have any GPIO attached to it.
Instead of trying to access the GPIO, request the count beforehand and
bail out if it is null or if an error is returned.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-11-25 11:39:50 -08:00
..
2013-12-06 02:06:29 -08:00
2016-10-26 16:01:16 -07:00
2016-05-25 10:40:15 -07:00
2016-10-13 17:25:40 -07:00