Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: arizona: Fix typo using hard-coded register

A hardcoded register is accidentally used instead of the register
address passed into the function. Correct this and use the appropriate
variable. This would cause minor issues on wm5102, but all other
devices using this driver would have been unaffected.

Fixes: commit ef84f885e037 ("mfd: arizona: Refactor arizona_poll_reg")
Reported-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Charles Keepax and committed by
Lee Jones
27fef9f8 2ea659a9

+1 -2
+1 -2
drivers/mfd/arizona-core.c
··· 245 245 int ret; 246 246 247 247 ret = regmap_read_poll_timeout(arizona->regmap, 248 - ARIZONA_INTERRUPT_RAW_STATUS_5, val, 249 - ((val & mask) == target), 248 + reg, val, ((val & mask) == target), 250 249 ARIZONA_REG_POLL_DELAY_US, 251 250 timeout_ms * 1000); 252 251 if (ret)