core: code shrink for name, label & consumer strings handling
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 20 Oct 2017 09:27:26 +0000 (11:27 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 20 Oct 2017 10:06:02 +0000 (12:06 +0200)
commit0393b10e8b19004b87856103a5fc5ab41ba77321
treeaee31b30089348f388c9f9bf6fa0d10f47fb9891
parent6bb8bea5a9d6334f4007eb358c8159a49da7eed9
core: code shrink for name, label & consumer strings handling

Create a helper function that implements a uniform way of copying the
info strings from the kernel data structures to gpiod_line and
gpiod_chip objects.

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