gpio: sprd: Fix the incorrect data register
authorNeo Hou <neo.hou@unisoc.com>
Wed, 16 Jan 2019 05:06:13 +0000 (13:06 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 23 Jan 2019 16:24:01 +0000 (17:24 +0100)
commit09d158d52d2bceda736797a61b6c13d7fc83707b
tree88e13d5da350d306a6374b2a3e8ae41e3e0cec08
parent1033be58992f818dc564196ded2bcc3f360bc297
gpio: sprd: Fix the incorrect data register

Since differnt type EICs have its own data register to read, thus fix the
incorrect data register.

Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Neo Hou <neo.hou@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