This doesn't make sense - we know what line we're reading the event
from anyway.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
return -1;
}
- event->line = line;
event->event_type = evdata.id == GPIOEVENT_EVENT_RISING_EDGE
? GPIOD_EVENT_RISING_EDGE
: GPIOD_EVENT_FALLING_EDGE;
* @brief Structure holding event info.
*/
struct gpiod_line_event {
- struct gpiod_line *line;
- /**< Line on which the event occurred. */
struct timespec ts;
/**< Best estimate of time of event occurrence. */
int event_type;