core: dynamically allocate memory for GPIO line request data
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 2 Jan 2017 13:51:01 +0000 (14:51 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 2 Jan 2017 13:51:01 +0000 (14:51 +0100)
commitba0a799f52a17230b15028b296c8fc71f93a32bc
tree872bd3560438df81fb26c51a0a49a3046bc1a1e4
parent9882a69a289369c0bc4375c1f394261ada6dbd42
core: dynamically allocate memory for GPIO line request data

For bulk requests, the lines will share the struct gpiohandle_request
object. Instead of it being a part of struct gpiod_line, allocate its
memory dynamically and only store the pointer in the line context
structure.

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