iterators: extend chip iterator error handling
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 10:06:50 +0000 (11:06 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 11 Jan 2017 10:06:50 +0000 (11:06 +0100)
commit8ea028f0d5dc60b1fc42fb5a9dbfbca3de6ec9f6
tree11183a8681b1447c68eaf4156f73f5cb4d6bf4ff
parent669923dedb0a13c2c8b834947863dd4d663249f6
iterators: extend chip iterator error handling

Add a function that allows to retrieve the name of the gpiochip that
we failed to open from an iterator routine. Use it in gpiodetect.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
core.c
gpiod.h
gpiodetect.c