]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: da9063: Optimize da9063_set_current_limit implementation
authorAxel Lin <axel.lin@ingics.com>
Fri, 30 Aug 2013 12:07:38 +0000 (20:07 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 30 Aug 2013 14:24:42 +0000 (15:24 +0100)
commit752f347854b6663d5d3286f134de56595eb6b62c
tree483bd2c4647e821337d655bd314b73f066419392
parent3b35cbbadaff23974f37cf377e9cca810b933e41
regulator: da9063: Optimize da9063_set_current_limit implementation

All the current limit tables have the values in ascend order.
So we can slightly optimize the for loop iteration because the first match
is the minimal value.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da9063-regulator.c