core: implement gpiod_line_close_chip()
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 28 Sep 2017 07:54:10 +0000 (09:54 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 28 Sep 2017 07:54:10 +0000 (09:54 +0200)
commit7a9dae7e32d58b3d52d40de5adfeb631b9d6dbaf
tree77b0f83f63c14f362552dabe1aa93a1aad90e9d2
parent949d4f6f3338e77e835c964873eb364f7c91b2e9
core: implement gpiod_line_close_chip()

This function works nicely with gpiod_line_find_by_name() which
returns a line object whose owning chip must be later freed by the
caller. With this routine the caller can skip creating a temporary
chip object.

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