summaryrefslogtreecommitdiff
path: root/drivers/mfd/intel_soc_pmic_bxtwc.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-03-15 17:58:38 +0300
committerLee Jones <lee.jones@linaro.org>2017-04-27 11:25:05 +0300
commitef84f885e03763c963dbb5d36389d33ce50576f2 (patch)
treef4891816b188bdd4d5d479f2920654340b014b62 /drivers/mfd/intel_soc_pmic_bxtwc.c
parentf9657b8f75473ce0488c750677bfef46751dd5e1 (diff)
downloadlinux-ef84f885e03763c963dbb5d36389d33ce50576f2.tar.xz
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