summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-104-idio-16.c
diff options
context:
space:
mode:
authorBamvor Jian Zhang2015-11-16 06:02:47 +0100
committerLinus Walleij2015-11-19 09:24:40 +0100
commit5ed41cc4baaf4127661d2a8f8f2ee6e3085e0fa9 (patch)
treecde0d7d31e4deab80a6def316ba661ef3873a0f2 /drivers/gpio/gpio-104-idio-16.c
parentgpiolib: improve overlap check of range of gpio (diff)
downloadkernel-qcow2-linux-5ed41cc4baaf4127661d2a8f8f2ee6e3085e0fa9.tar.gz
kernel-qcow2-linux-5ed41cc4baaf4127661d2a8f8f2ee6e3085e0fa9.tar.xz
kernel-qcow2-linux-5ed41cc4baaf4127661d2a8f8f2ee6e3085e0fa9.zip
gpiolib: do not allow to insert an empty gpiochip
We need to check if number of gpio is positive if there is no such check in devicetree or acpi or whatever called before gpiochip_add. I suppose that devicetree and acpi do not allow insert gpiochip with zero number but I do not know if it is enough to ignore this check in gpiochip_add. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-104-idio-16.c')
0 files changed, 0 insertions, 0 deletions