Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpiolib: remove an unnecessary TODO

It's actually fine to read values of output lines. This was also
allowed by the legacy sysfs interface.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
2b955b34 e5332d54

+1 -1
+1 -1
drivers/gpio/gpiolib.c
··· 431 431 int i; 432 432 433 433 if (cmd == GPIOHANDLE_GET_LINE_VALUES_IOCTL) { 434 - /* TODO: check if descriptors are really input */ 434 + /* NOTE: It's ok to read values of output lines. */ 435 435 int ret = gpiod_get_array_value_complex(false, 436 436 true, 437 437 lh->numdescs,