From: Bartosz Golaszewski Date: Tue, 10 Jan 2017 10:11:00 +0000 (+0100) Subject: event: remove the line field from struct gpiod_line_event X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=52a4fa0af442c09d30c477b049ac5c783b507c6a;p=qemu-gpiodev%2Flibgpiod.git event: remove the line field from struct gpiod_line_event This doesn't make sense - we know what line we're reading the event from anyway. Signed-off-by: Bartosz Golaszewski --- diff --git a/core.c b/core.c index 0d36bdd..fa89110 100644 --- a/core.c +++ b/core.c @@ -710,7 +710,6 @@ int gpiod_line_event_read(struct gpiod_line *line, return -1; } - event->line = line; event->event_type = evdata.id == GPIOEVENT_EVENT_RISING_EDGE ? GPIOD_EVENT_RISING_EDGE : GPIOD_EVENT_FALLING_EDGE; diff --git a/gpiod.h b/gpiod.h index 49bcd7f..2108283 100644 --- a/gpiod.h +++ b/gpiod.h @@ -490,8 +490,6 @@ struct gpiod_line_evreq_config { * @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;