aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2012-07-17 03:29:03 +0000
committerMark Brown <[email protected]>2012-07-17 10:07:26 +0000
commit8a165df7a915cb212f41c1dec9abc5ac8f8ee6b6 (patch)
tree9fa24c3a01b590e698bf8038b9b30de653494ffd /fs/btrfs/tree-log.c
parentregulator: lp872x: Simplify implementation of lp872x_find_regulator_init_data() (diff)
downloadkernel-8a165df7a915cb212f41c1dec9abc5ac8f8ee6b6.tar.gz
kernel-8a165df7a915cb212f41c1dec9abc5ac8f8ee6b6.zip
regulator: palmas: Fix calcuating selector in palmas_map_voltage_smps
The logic of calculating selector in palmas_map_voltage_smps() does not match the logic to list voltage in palmas_list_voltage_smps(). We use below equation to calculate voltage when selector > 0: voltage = (0.49V + (selector * 0.01V)) * RANGE RANGE is either x1 or x2 So we need to take into account with the multiplier set in VSEL register when calculating selector in palmas_map_voltage_smps() Signed-off-by: Axel Lin <[email protected]> Acked-by: Graeme Gregory <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions