]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: samsung: Fix off-by-one bug in gpio addresses
authorSean Paul <seanpaul@chromium.org>
Fri, 20 Jul 2012 20:58:59 +0000 (13:58 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Aug 2012 06:55:52 +0000 (08:55 +0200)
commitbadc7ebbff108aeecc6efed8a1c6c6e98222efda
treefb3c74f8c80edf4f831cd1bc49d8cfa4cb7b149e
parent7234bcbf389c60cac771feb9149ccfac3459d8fc
gpio: samsung: Fix off-by-one bug in gpio addresses

Move gpc4 to the end of the automatically processed gpio controllers so
we don't taint the automatic offset calculation.

This bug caused all controllers coming after gpc4 to map to the
incorrect address. The result is <&gpd1 0 0 0 0> would actually map to
GPIO 0 in gpd0.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Doug Anderson <dianders@chromium.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-samsung.c