regulator: da903x: Convert da9034 ldo12 to use linear ranges
authorAxel Lin <axel.lin@ingics.com>
Sun, 28 Jul 2013 08:37:23 +0000 (16:37 +0800)
committerMark Brown <broonie@linaro.org>
Sun, 28 Jul 2013 12:41:52 +0000 (13:41 +0100)
commit550bf89366e068cd6e29c36156f700a02dbb6388
tree97e02e8e3760b5cd8487bc91db0512f8ab2cdc76
parent6c918d220925eeeca75b67e896eabffd061cd128
regulator: da903x: Convert da9034 ldo12 to use linear ranges

The voltage table of da9034 LDO12 is:
17000001750000180000018500001900000195000020000002050000
27000002750000280000028500002900000295000030000003050000

The voltage table is composed of two linear ranges:
for selector 0 ... 7:
        volt = 1700000 + 50000 * selector
for selector: 8 ... 15:
        volt = 2700000 + 50000 * (selector - 8)

This patch converts da9034 LDO12 to use newly introduced helpers for multiple
linear ranges.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da903x.c
This page took 0.024785 seconds and 5 git commands to generate.