Files
linux-stable-mirror/drivers
Troy Kisky 566fb9906e rtc: m41t80: remove unneeded checks from m41t80_sqw_set_rate
commit 05a03bf260 upstream.

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>
Cc: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-05 15:48:59 +01:00
..
…
2017-12-14 09:53:13 +01:00
…
…
…
…
…
…
…
2017-12-29 17:53:49 +01:00
…
…
…
2017-12-29 17:53:46 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-01-02 20:31:05 +01:00
…
…
…
…
…
2018-01-02 20:31:05 +01:00
…
…
…
2017-12-17 15:07:56 +01:00
…
…
…
…
…
…