core: rename gpiod_line_is_used_by_kernel()
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 24 Sep 2017 08:48:14 +0000 (10:48 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 24 Sep 2017 08:48:14 +0000 (10:48 +0200)
commit57fb030d30b5936cc8cc90133435db07d00511c5
tree340a6c47ebe37418ea2d68497c825bda99688e34
parent3d21968f8d3d6ab0e5a4290e66a1cb77ec73e6f7
core: rename gpiod_line_is_used_by_kernel()

The UAPI flag checked by this routine is called GPIOLINE_FLAG_KERNEL
but its name may be a bit misleading. When set, it can mean that the
line is used by the kernel or by another user space process.

Use a more general name: gpiod_line_is_used().

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