commit | 3d5a9437a68a184fbbd0dcf09bf4daf40250505e | [log] [tgz] |
---|---|---|
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | Fri Nov 25 11:36:01 2016 -0800 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Fri Nov 25 11:39:50 2016 -0800 |
tree | 62881e1940d7d44f453f649fb7ee38dd0f4360ab | |
parent | be8e7a7ec876d509bc61af64b41b314a142aa262 [diff] |
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>