commit | fa86963a7546e08efdb32153522c1a42de069c8b | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Mon Nov 27 11:48:49 2017 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Sat Dec 02 22:42:28 2017 +0100 |
tree | 406ed558fb99f99a7449b5f8a5ad43985410ff14 | |
parent | 46526c15cadcba43c69e22a6dfaf3f6f444c70aa [diff] |
gpio: mockup: verify that ngpio > 0 Improve the module params sanitization: bail out from init if the user tries to pass a non-positive number of GPIO lines for any mockup chip. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>