core: rework gpiod_line_find()
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 29 Sep 2017 16:27:39 +0000 (18:27 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 29 Sep 2017 16:35:28 +0000 (18:35 +0200)
commitd477b96778ffee47dfdb4607d375f2c995b0cb97
treebe90e430a13b89474545606717792cd7c28f6e57
parentf14784739172cf6857516a96d28856292b6fbeb7
core: rework gpiod_line_find()

Use gpiod_chip_find_line() internally for smaller code. Return NULL
if an error occurrs during the lookup. Update the documentation.

While we're at it: update the tests for line lookups.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
include/gpiod.h
src/lib/core.c
tests/tests-line.c