gpio: store reflect the label to userspace
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Feb 2016 13:48:23 +0000 (14:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Feb 2016 08:48:41 +0000 (09:48 +0100)
commitdf4878e969ccc047da45d2cd3af5d08031da1593
tree2677387492b60fd5c6a42a317bde0e7e965aa8fa
parent0a7439ef755d46a2e61d460d7a440f7fa65d7182
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>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/driver.h
include/uapi/linux/gpio.h
tools/gpio/lsgpio.c