diff options
author | Axel Lin <[email protected]> | 2013-07-30 22:47:44 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2013-07-31 17:53:46 +0100 |
commit | e56566699ca64ec44dd134ec5310a3585ffacfec (patch) | |
tree | db37fc92b7e218247012e0e0960db548aa5086de /tools/perf/util/trace-event-scripting.c | |
parent | d9493234e20e8153495fa118b60bdff22fdfc6c8 (diff) |
regulator: pfuze100: Simplify pfuze100_set_ramp_delay implementation
Simplify the equation to calculate ramp_delay.
Below equations are equivalent:
ramp_delay = 25000 / (2 * ramp_delay);
ramp_delay = 50000 / (4 * ramp_delay);
ramp_delay = 25000 / (2 * ramp_delay);
ramp_delay = 12500 / ramp_delay;
So we don't need to read BIT6 of rdev->desc->vsel_reg for applying different
equations.
Also use rdev->desc->vsel_reg instead of run-time calculate register address.
Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Robin Gong <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions