diff options
| author | Axel Lin <axel.lin@gmail.com> | 2012-04-10 14:22:38 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-10 10:14:01 +0100 |
| commit | 0fa310ccabfe9034017e1b6780052d36fbd9f38f (patch) | |
| tree | ad74f575623583ff0269c146f45f7eb59a113930 /tools/perf/scripts/python | |
| parent | 65896e7362670aa9a416d851ec11b7fc009c7e94 (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
