core: rename GPIOD_MAX_LINES
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 4 Jan 2017 16:17:03 +0000 (17:17 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 4 Jan 2017 16:17:03 +0000 (17:17 +0100)
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 <bartekgola@gmail.com>
gpiod.h

diff --git a/gpiod.h b/gpiod.h
index 6104cce5ab10405c552613e6a7e8fab1fe841374..1f6243b93e54d47fefc115a6f7a83f450fc194c8 100644 (file)
--- 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;
 };