diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-29 20:51:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-31 13:44:35 +0100 |
commit | 8d126356316f03f0dce2475754d4aa5c6c7ea00f (patch) | |
tree | 85e8238595ed7afb7acb1393d176cdcc119ee3a9 | |
parent | 9d8dbe989029e6d767ed56773ac65409da625381 (diff) | |
download | linux-stable-8d126356316f03f0dce2475754d4aa5c6c7ea00f.tar.gz linux-stable-8d126356316f03f0dce2475754d4aa5c6c7ea00f.tar.bz2 linux-stable-8d126356316f03f0dce2475754d4aa5c6c7ea00f.zip |
staging: hikey9xx: hi6421-spmi-pmic: fix IRQ handler code
The conversion to regmap introduced a regression at the code
which reads from the IRQ register. Address that.
Fixes: fb02e3ebfb2d ("staging: hikey9xx: spmi driver: convert to regmap")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/2eae710c333a8ee6f9e0a086c84115bc90a782ca.1611949675.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index 909f7b106af4..48e4f92f7d1e 100644 --- a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c +++ b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c @@ -66,7 +66,7 @@ static irqreturn_t hi6421_spmi_irq_handler(int irq, void *priv) int i, offset; for (i = 0; i < HISI_IRQ_ARRAY; i++) { - regmap_read(ddata->regmap, offset, &data); + regmap_read(ddata->regmap, SOC_PMIC_IRQ0_ADDR + i, &data); data &= HISI_MASK_FIELD; if (data != 0) pr_debug("data[%d]=0x%d\n\r", i, data); |