gpio: eic: sprd: Fix the incorrect EIC offset when toggling
authorBruce Chen <bruce.chen@unisoc.com>
Mon, 16 Sep 2019 09:56:56 +0000 (17:56 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 1 Oct 2019 09:50:40 +0000 (11:50 +0200)
commite91aafcb51f3c5001ae76c3ee027beb0b8506447
tree45ba4868f2272cf1d7bd6f87d47230a3cb3043cd
parentbe7ae45cfea97e787234e00e1a9eb341acacd84e
gpio: eic: sprd: Fix the incorrect EIC offset when toggling

When toggling the level trigger to emulate the edge trigger, the
EIC offset is incorrect without adding the corresponding bank index,
thus fix it.

Fixes: 7bf0d7f62282 ("gpio: eic: Add edge trigger emulation for EIC")
Cc: stable@vger.kernel.org
Signed-off-by: Bruce Chen <bruce.chen@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-eic-sprd.c