]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mcp23s08: switch chip count to int
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 28 May 2014 07:14:06 +0000 (09:14 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 May 2014 07:16:03 +0000 (09:16 +0200)
commite017d37272791d4f7343ee51a237e2b02b7f1bd0
tree67900181d2acba78d9e141c16fb32f68a4f8c594
parent528ace6b48cda2b1ec84944d75f8594ed6ddacec
gpio: mcp23s08: switch chip count to int

Commit cd09ac9a626392920b7b738d27d55ced407ce8d1
"gpio: mcp23s08: fixed count variable for devicetree probing"
introduced a loop check to see if the number of chips were
unconsistent and going below zero counting downwards, but
this requires the counting variable to be able to be
negative, so switch the variable from unsigned to int.

Cc: Michael Stickel <ms@mycable.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c