From 0fcab98c540fa6a1955d710be56191c917f80461 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sat, 28 Jan 2017 17:36:35 +0100 Subject: [PATCH] core: rename line_update() to line_maybe_update() This routine can silently fail, so reflect that in the name. Signed-off-by: Bartosz Golaszewski --- src/lib/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/core.c b/src/lib/core.c index d1fe38c..48ee15f 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -432,7 +432,7 @@ static void line_set_needs_update(struct gpiod_line *line) line->up_to_date = false; } -static void line_update(struct gpiod_line *line) +static void line_maybe_update(struct gpiod_line *line) { int status; @@ -581,7 +581,7 @@ int gpiod_line_request_bulk(struct gpiod_line_bulk *bulk, line_set_handle(line, handle); line_set_state(line, LINE_TAKEN); - line_update(line); + line_maybe_update(line); } return 0; @@ -607,7 +607,7 @@ void gpiod_line_release_bulk(struct gpiod_line_bulk *bulk) line_remove_handle(line); line_set_state(line, LINE_FREE); - line_update(line); + line_maybe_update(line); } } -- 2.30.2