summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-max732x.c
diff options
context:
space:
mode:
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>2015-11-16 06:02:46 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-11-19 09:24:40 +0100
commitef7c7553039b3d1c847b38b0f1ea208f8d5d8370 (patch)
treef4f867fe037e6d7d6eaae22e7dbc9e0f0ede2635 /drivers/gpio/gpio-max732x.c
parentgpiolib: keep comment consistent with code (diff)
downloadlinux-ef7c7553039b3d1c847b38b0f1ea208f8d5d8370.tar.xz
linux-ef7c7553039b3d1c847b38b0f1ea208f8d5d8370.zip
gpiolib: improve overlap check of range of gpio
There are limitations for the current checker: 1. Could not check the overlap if the new gpiochip is the secondly gpiochip. 2. Could not check the overlap if the new gpiochip is overlap with the left of gpiochip. E.g. if we insert [c, d] between [a,b] and [e, f], and e >= c + d, it will successful even if c < a + b. 3. Allow overlap of base of different gpiochip. This patch fix these issues by checking the overlap of both right and left gpiochip in the same loop statement. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> [Tweaked to remove unnecessary ret variable] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-max732x.c')
0 files changed, 0 insertions, 0 deletions