From: Bartosz Golaszewski Date: Sat, 28 Jan 2017 16:36:35 +0000 (+0100) Subject: core: rename line_update() to line_maybe_update() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0fcab98c540fa6a1955d710be56191c917f80461;p=qemu-gpiodev%2Flibgpiod.git core: rename line_update() to line_maybe_update() This routine can silently fail, so reflect that in the name. Signed-off-by: Bartosz Golaszewski --- 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); } }