commit | d0121b8548bcb9a640de38c13e239493c87c44f4 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | Wed Jul 11 18:33:19 2018 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Sep 14 10:45:13 2018 +0200 |
tree | a80858c70e5850766297912b25776330fb392c8e | |
parent | fa38869b0161484f28a7e1f34535d5825dca6488 [diff] |
gpiolib: use better errno if get_direction is not available EINVAL is very generic, use ENOTSUPP in case the gpiochip does not provide this function. While removing the assignment from the 'status' variable, use better indentation in the declaration block. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>