summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-10 14:22:38 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-10 10:14:01 +0100
commit0fa310ccabfe9034017e1b6780052d36fbd9f38f (patch)
treead74f575623583ff0269c146f45f7eb59a113930 /tools/perf/scripts/python
parent65896e7362670aa9a416d851ec11b7fc009c7e94 (diff)
regulator: max8997: Remove n_bits from struct voltage_map_desc
The n_bits is only used in max8997_get_voltage_proper_val to check the valid range for variable i. Current code already ensures min_vol never greater than desc->max, which means the variable i always in the valid range: 0 .. (desc->max - desc->min)/desc->step. Thus we can remove the checking (i >= (1 << desc->n_bits) and then remove n_bits from struct voltage_map_desc. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions