]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf7093f3e7a50bfeeceb8950f9130cbf8af74bf92
treefb3c74f8c80edf4f831cd1bc49d8cfa4cb7b149e
parent5230f8fe9ad870ac24f23bca496347b87185c7c5
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