OSDN Git Service

mfd: axp20x: Correct AXP806 POK interrupt prefix
authorChen-Yu Tsai <wens@csie.org>
Thu, 29 Mar 2018 04:31:15 +0000 (12:31 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commiteef2b53a3ec6b1919d32bd722d2f5d33769a1f48
treedfba939068e2c02a1b2a0d1cf11ba51ad2d22785
parente26f87e5ca75a181b6da16dd835e57b329a2664f
mfd: axp20x: Correct AXP806 POK interrupt prefix

When AXP806 support was added, POK was incorrectly expanded to PWROK.
However, the datasheet lists them as POK[LSNP], which is the same as
on the AXP288. Furthermore, the registers associated with POK functions
are the same as the PEK on the other AXP PMICs. This suggests that
"POK" means "Power On Key", much like "PEK" means "Power Enable Key",
instead of "Power OK".

This patch changes the "PWROK" prefix to "POK" for these interrupts.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c
include/linux/mfd/axp20x.h