aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-02-12 08:48:23 -0500
committerLinus Walleij <linus.walleij@linaro.org>2016-02-19 03:48:41 -0500
commitdf4878e969ccc047da45d2cd3af5d08031da1593 (patch)
tree2677387492b60fd5c6a42a317bde0e7e965aa8fa /include/uapi/linux
parent0a7439ef755d46a2e61d460d7a440f7fa65d7182 (diff)
gpio: store reflect the label to userspace
The gpio_chip label is useful for userspace to understand what kind of GPIO chip it is dealing with. Let's store a copy of this label in the gpio_device, add it to the struct passed to userspace for GPIO_GET_CHIPINFO_IOCTL and modify lsgpio to show it. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
index 3188a87bdaa0..3f93e1bcd3dd 100644
--- a/include/uapi/linux/gpio.h
+++ b/include/uapi/linux/gpio.h
@@ -16,10 +16,12 @@
16/** 16/**
17 * struct gpiochip_info - Information about a certain GPIO chip 17 * struct gpiochip_info - Information about a certain GPIO chip
18 * @name: the name of this GPIO chip 18 * @name: the name of this GPIO chip
19 * @label: a functional name for this GPIO chip
19 * @lines: number of GPIO lines on this chip 20 * @lines: number of GPIO lines on this chip
20 */ 21 */
21struct gpiochip_info { 22struct gpiochip_info {
22 char name[32]; 23 char name[32];
24 char label[32];
23 __u32 lines; 25 __u32 lines;
24}; 26};
25 27