]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: verify the number of GPIO chips requested
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:39 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:24 +0000 (22:42 +0100)
commita9e2021c4cfa0fd1b298cb4f37bec70f080b90d2
treeb89d507ec4b2d136657b693d7d71cd3ac72f7442
parent617b096ad160a8c64782269e68d9b54f529443fb
gpio: mockup: verify the number of GPIO chips requested

The number of supported mockup chips is limited. Check this limit when
parsing the module parameters.

Also: make sure that each chip is described with a <base - ngpio> pair.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c