]> git.karo-electronics.de Git - linux-beck.git/commit
clk: Fix notifier documentation
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Wed, 22 Jan 2014 19:48:37 +0000 (11:48 -0800)
committerMike Turquette <mturquette@linaro.org>
Tue, 18 Feb 2014 22:08:05 +0000 (14:08 -0800)
commit5324fda79e28d1d4db0631369b39ff263d0142b4
treec0809f634c9367690a7a0bbcbbc198404cdb635d
parent6d0abeca3242a88cab8232e4acd7e2bf088f3bc2
clk: Fix notifier documentation

Contradicting to documenation, the notifier callbacks do receive
the original clock rate in struct clk_notifier_data.old_rate and the new
frequency struct clk_notifier_data.new_rate, independent of the
notification reason.

This behavior also seems to make more sense, since callbacks can use the
same code to deterimine whether clocks are scaled up or down. Something
which would not even possible in the post-rate-change case if the
behavior was as documented.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c