aboutsummaryrefslogtreecommitdiff
path: root/tools/gpio/gpio-utils.h
diff options
context:
space:
mode:
authorKent Gibson2020-09-28 08:28:03 +0800
committerBartosz Golaszewski2020-09-30 10:57:17 +0200
commited60aee0edcda1fabc39ab27c9650fa172f461b4 (patch)
tree1e85d400423a1e7508850d17e7e1e4e7186bd234 /tools/gpio/gpio-utils.h
parente86a863b337c50713b674007f74dc1854701eb93 (diff)
tools: gpio: rename nlines to num_lines
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson <warthog618@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools/gpio/gpio-utils.h')
-rw-r--r--tools/gpio/gpio-utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpio/gpio-utils.h b/tools/gpio/gpio-utils.h
index cf37f13f3dcb..324729577865 100644
--- a/tools/gpio/gpio-utils.h
+++ b/tools/gpio/gpio-utils.h
@@ -23,7 +23,7 @@ static inline int check_prefix(const char *str, const char *prefix)
}
int gpiotools_request_linehandle(const char *device_name, unsigned int *lines,
- unsigned int nlines, unsigned int flag,
+ unsigned int num_lines, unsigned int flag,
struct gpiohandle_data *data,
const char *consumer_label);
int gpiotools_set_values(const int fd, struct gpiohandle_data *data);
@@ -32,10 +32,10 @@ int gpiotools_release_linehandle(const int fd);
int gpiotools_get(const char *device_name, unsigned int line);
int gpiotools_gets(const char *device_name, unsigned int *lines,
- unsigned int nlines, struct gpiohandle_data *data);
+ unsigned int num_lines, struct gpiohandle_data *data);
int gpiotools_set(const char *device_name, unsigned int line,
unsigned int value);
int gpiotools_sets(const char *device_name, unsigned int *lines,
- unsigned int nlines, struct gpiohandle_data *data);
+ unsigned int num_lines, struct gpiohandle_data *data);
#endif /* _GPIO_UTILS_H_ */