diff options
author | 2017-11-02 18:58:16 -0700 | |
---|---|---|
committer | 2017-11-08 07:52:24 +0100 | |
commit | 05a03bf260e0480bfc0db91b1fdbc2115e3f193b (patch) | |
tree | 129810da332509818fef7194a94595801b08981d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rtc: m41t80: avoid i2c read in m41t80_sqw_is_prepared (diff) | |
download | linux-dev-05a03bf260e0480bfc0db91b1fdbc2115e3f193b.tar.xz linux-dev-05a03bf260e0480bfc0db91b1fdbc2115e3f193b.zip |
rtc: m41t80: remove unneeded checks from m41t80_sqw_set_rate
m41t80_sqw_set_rate will be called with the result from
m41t80_sqw_round_rate, so might as well make
m41t80_sqw_set_rate(n) same as
m41t80_sqw_set_rate(m41t80_sqw_round_rate(n))
As Russell King wrote[1],
"clk_round_rate() is supposed to tell you what you end up with if you
ask clk_set_rate() to set the exact same value you passed in - but
clk_round_rate() won't modify the hardware."
[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-January/080175.html
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions