summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/intel_soc_pmic_bxtwc.c
diff options
context:
space:
mode:
authorCharles Keepax2017-03-15 15:58:38 +0100
committerLee Jones2017-04-27 10:25:05 +0200
commitef84f885e03763c963dbb5d36389d33ce50576f2 (patch)
treef4891816b188bdd4d5d479f2920654340b014b62 /drivers/mfd/intel_soc_pmic_bxtwc.c
parentmfd: arizona: Display register addresses in hex (diff)
downloadkernel-qcow2-linux-ef84f885e03763c963dbb5d36389d33ce50576f2.tar.gz
kernel-qcow2-linux-ef84f885e03763c963dbb5d36389d33ce50576f2.tar.xz
kernel-qcow2-linux-ef84f885e03763c963dbb5d36389d33ce50576f2.zip
mfd: arizona: Refactor arizona_poll_reg
Currently, we specify the timeout in terms of the number of polls but it is more clear from a user of the functions perspective to specify the timeout directly in milliseconds, as such update the function to these new semantics. Additionally, arizona_poll_reg essentially hard-codes regmap_read_poll_timeout, update the implementation to use regmap_read_poll_timeout. We still keep arizona_poll_reg around as regmap_read_poll_timeout is a macro so rather than expand this for each caller keep it wrapped in arizona_poll_reg. Whilst we are doing this make the timeouts a little more generous as the previous system had a bit more slack as it was done as a delay per iteration of the loop whereas regmap_read_poll_timeout compares ktime's. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/intel_soc_pmic_bxtwc.c')
0 files changed, 0 insertions, 0 deletions