提交 2b955b34 编写于 作者: B Bartosz Golaszewski 提交者: Linus Walleij

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: NBartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 e5332d54
...@@ -431,7 +431,7 @@ static long linehandle_ioctl(struct file *filep, unsigned int cmd, ...@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册