Commit 4e154159 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpiolib: improve the robustness of watch/unwatch ioctl()

This makes the new ioctl() a bit more robust - we now check if a line
is already being watched and return -EBUSY if the user-space tries to
start watching it again. Same for unwatch - return -EBUSY if user-space
tries to unwatch a line that's not being watched.

Fixes: 51c1064e

 ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dc87f6dd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment