diff options
author | 2016-11-25 11:36:01 -0800 | |
---|---|---|
committer | 2016-11-25 11:39:50 -0800 | |
commit | 3d5a9437a68a184fbbd0dcf09bf4daf40250505e (patch) | |
tree | 62881e1940d7d44f453f649fb7ee38dd0f4360ab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Input: soc_button_array - use gpio_is_valid() (diff) | |
download | linux-rng-3d5a9437a68a184fbbd0dcf09bf4daf40250505e.tar.xz linux-rng-3d5a9437a68a184fbbd0dcf09bf4daf40250505e.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions