mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
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 ef84f885e0
("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>
This commit is contained in:
parent
2ea659a9ef
commit
27fef9f8ec
@ -245,8 +245,7 @@ static int arizona_poll_reg(struct arizona *arizona,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = regmap_read_poll_timeout(arizona->regmap,
|
ret = regmap_read_poll_timeout(arizona->regmap,
|
||||||
ARIZONA_INTERRUPT_RAW_STATUS_5, val,
|
reg, val, ((val & mask) == target),
|
||||||
((val & mask) == target),
|
|
||||||
ARIZONA_REG_POLL_DELAY_US,
|
ARIZONA_REG_POLL_DELAY_US,
|
||||||
timeout_ms * 1000);
|
timeout_ms * 1000);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user