OSDN Git Service

gpio: gpio-xilinx: Add check if width exceeds 32
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Fri, 29 Jan 2021 14:26:50 +0000 (19:56 +0530)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:33 +0000 (11:43 +0100)
commit6e551bfa9872cd335d0929411cfdefe99ce65a1d
tree2a6b05154409d66f63c2857edadef49a6aedb710
parent26b04774621ed333e8bc56479feb6e31625df58c
gpio: gpio-xilinx: Add check if width exceeds 32

Add check to see if gpio-width property does not exceed 32.
If it exceeds then return -EINVAL.

Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-xilinx.c