]> git.openfabrics.org - ~emulex/infiniband.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)
commit556dcf903d8a22aa1b3eb743aeffd4849eef2e24
tree483bd2c4647e821337d655bd314b73f066419392
parent69ca3e58d17854f8fa72d85aea6bf4614ad25a56
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