From c2597c40fbe8091e104ba8ad9073915259217ab0 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 4 Jan 2017 17:17:03 +0100 Subject: [PATCH] core: rename GPIOD_MAX_LINES This define specifies the maximum number of lines that can be requested in a single operation. Make it clear with the new name. Signed-off-by: Bartosz Golaszewski --- gpiod.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpiod.h b/gpiod.h index 6104cce..1f6243b 100644 --- a/gpiod.h +++ b/gpiod.h @@ -66,7 +66,7 @@ enum { GPIOD_REQUEST_OPEN_SOURCE = GPIOD_BIT(6), }; -#define GPIOD_MAX_LINES 64 +#define GPIOD_REQUEST_MAX_LINES 64 struct gpiod_line; @@ -109,7 +109,7 @@ static inline int gpiod_line_request_dout(struct gpiod_line *line, } struct gpiod_line_bulk { - struct gpiod_line *lines[GPIOD_MAX_LINES]; + struct gpiod_line *lines[GPIOD_REQUEST_MAX_LINES]; unsigned int num_lines; }; -- 2.30.2