diff options
| author | Andy Shevchenko <[email protected]> | 2020-10-21 17:25:28 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2020-10-26 15:23:33 +0100 |
| commit | 7b58696d9a8415576317615c63e9899797026f17 (patch) | |
| tree | e941387d6206474b9086abfff4b0456d0300ef7c /scripts/gdb/linux/config.py | |
| parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
gpiolib: Extract gpiod_not_found() helper
Several places in the code are using same idiom, i.e.
IS_ERR(desc) && PTR_ERR(desc) == -ENOENT
which meaning is GPIO description is not found.
For better readability extract gpiod_not_found() helper and use it.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions