]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: mockup: refuse to accept an odd number of GPIO ranges
authorBartosz Golaszewski <brgl@bgdev.pl>
Fri, 9 Jun 2017 11:41:27 +0000 (13:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 07:18:51 +0000 (09:18 +0200)
commitb6c2e77d34ff775e4cf4ca803877dafd74737551
tree8556aea69fe6bd6c3af6f7eeef7d8fef145f6792
parent650b57b083ef22208c1d10e554f964571221bca4
gpio: mockup: refuse to accept an odd number of GPIO ranges

Currently we ignore the last odd range value, since each chip is
described by two values. Be more strict and require the user to
pass an even number of ranges.

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