From: Bartosz Golaszewski Date: Mon, 9 Jan 2017 12:31:06 +0000 (+0100) Subject: core: naming convention tweaks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8353c5c21f57f2e8a21730df67f89f2c2305f264;p=qemu-gpiodev%2Flibgpiod.git core: naming convention tweaks Signed-off-by: Bartosz Golaszewski --- diff --git a/core.c b/core.c index 0a0eaa7..085094b 100644 --- a/core.c +++ b/core.c @@ -66,7 +66,7 @@ static __thread char errmsg[ERRSTR_MAX]; static const char *const error_descr[] = { "success", - "GPIO line not requested", + "GPIO line not reserved", "no events configured on GPIO line", "GPIO lines in bulk don't belong to the same gpiochip", }; @@ -440,7 +440,7 @@ bool gpiod_line_is_reserved(struct gpiod_line *line) return line->reserved_status == LINE_RESERVED; } -static bool line_bulk_is_requested(struct gpiod_line_bulk *line_bulk) +static bool line_bulk_is_reserved(struct gpiod_line_bulk *line_bulk) { unsigned int i; @@ -473,7 +473,7 @@ int gpiod_line_get_value_bulk(struct gpiod_line_bulk *line_bulk, int *values) unsigned int i; int status; - if (!line_bulk_is_requested(line_bulk)) { + if (!line_bulk_is_reserved(line_bulk)) { set_last_error(GPIOD_EREQUEST); return -1; } @@ -507,7 +507,7 @@ int gpiod_line_set_value_bulk(struct gpiod_line_bulk *line_bulk, int *values) unsigned int i; int status; - if (!line_bulk_is_requested(line_bulk)) { + if (!line_bulk_is_reserved(line_bulk)) { set_last_error(GPIOD_EREQUEST); return -1; }