core: use chip fd if zero returned nshubin/cuse bb/nshubin/cuse
authorNikita Shubin <nikita.shubin@maquefel.me>
Mon, 9 Dec 2024 12:25:40 +0000 (15:25 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Mon, 9 Dec 2024 12:25:40 +0000 (15:25 +0300)
commit4b31970da381e1202a8c93549b6fa4eab0af9088
tree25e4127adae299ba276e57e5f137c89eab475fd0
parent7fd05cbf10351b2d1c578c95d47503a63e3fe6bc
core: use chip fd if zero returned

In case we are using CUSE faked device, it can't provide dedicated file
descriptor. Use chip fd instead.

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
lib/chip.c
tools/gpiomon.c