mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 19:25:13 +00:00
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>
This commit is contained in:
parent
e5332d5437
commit
2b955b34c2
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ static long linehandle_ioctl(struct file *filep, unsigned int cmd,
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (cmd == GPIOHANDLE_GET_LINE_VALUES_IOCTL) {
|
if (cmd == GPIOHANDLE_GET_LINE_VALUES_IOCTL) {
|
||||||
/* TODO: check if descriptors are really input */
|
/* NOTE: It's ok to read values of output lines. */
|
||||||
int ret = gpiod_get_array_value_complex(false,
|
int ret = gpiod_get_array_value_complex(false,
|
||||||
true,
|
true,
|
||||||
lh->numdescs,
|
lh->numdescs,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue