core: remove kernel data structures from struct gpiod_chip
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 19 Oct 2017 12:15:15 +0000 (14:15 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 19 Oct 2017 12:15:15 +0000 (14:15 +0200)
commitf7943d086a5c093b9efe8caf821578ca3dba3d08
tree488d74097103ea09d52a876f5f8df3ca864520a6
parent0d214ced90e31cf4acafd77589e5fb2f1ab2b561
core: remove kernel data structures from struct gpiod_chip

The structures defined in linux/gpio.h use non-standard data types.

Use them only when calling relevant ioctl()s and then copy the
necessary info to separate fields in struct gpiod_chip.

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