diff options
| author | Andy Shevchenko <[email protected]> | 2018-07-03 03:38:31 +0300 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-07-09 15:10:43 +0200 |
| commit | 36b312792b97933dc07abe074f50941199bd357c (patch) | |
| tree | 8824e31d156cf796ad2666a277af77617fa0e8bb /tools/perf/scripts/python/stat-cpi.py | |
| parent | f8b52dd50ccdae7efc42ef54278f29d2f9d6cb36 (diff) | |
gpiolib: Respect error code of ->get_direction()
In case we try to lock GPIO pin as IRQ when something going wrong
we print a misleading message.
Correct this by checking an error code from ->get_direction() in
gpiochip_lock_as_irq() and printing a corresponding message.
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Mika Westerberg <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions