core: use gpiod_line_bulk_foreach_line_off()
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 23 Oct 2017 10:49:06 +0000 (12:49 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 23 Oct 2017 20:49:05 +0000 (22:49 +0200)
commite8d6c54d7af6a68becfa0b0b71d3e4b073322c19
treeb4de6805cfb3663b873ee5cb914e35579c24cc77
parent5ba624dd6901c08cf2140b0487debafbb72079a1
core: use gpiod_line_bulk_foreach_line_off()

Use the newly introduced iterator macro wherever there's a need to
access the line offset while looping over a bulk object.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c