OSDN Git Service

regulator: wm8350: fix missing increment of loop index i
authorColin Ian King <colin.king@canonical.com>
Fri, 20 Apr 2018 09:26:23 +0000 (10:26 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 23 Apr 2018 11:26:05 +0000 (12:26 +0100)
commitf97a236801b29f6a8e2ba3957789c3932a908966
tree2b095257cc0952423a2d29de9f47f31b2fe3ab1a
parent02f3703934a42417021405ef336fe45add13c3d1
regulator: wm8350: fix missing increment of loop index i

It seems that the loop index i is not being incremented and hence
potentially the while loop could spin forever. Fortunately with the
data being used this does not appear to happen at the moment.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/wm8350-regulator.c