gpio: mockup: don't return magic numbers from probe()
authorBartosz Golaszewski <brgl@bgdev.pl>
Fri, 9 Jun 2017 11:41:29 +0000 (13:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 07:18:59 +0000 (09:18 +0200)
commit4dc9d76c983db100ec91b65f6cee804871e5102f
tree189a63c7715324ebdd7305a462300361a821f02a
parentb652336d3fb70b95a5b0a5ea3a32e7116b15be29
gpio: mockup: don't return magic numbers from probe()

When the requested number of GPIO lines is 0, return -EINVAL, not
-1 which is -EPERM.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c