]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
clk: pwm: implement the .get_duty_cycle callback
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 25 May 2019 18:42:53 +0000 (20:42 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 6 Jun 2019 18:31:03 +0000 (11:31 -0700)
commit4c34282fb7d7a1d47a4d901554b574ea6b256cd5
treea128f2fe524687e0645927e65ba28dab85777d88
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
clk: pwm: implement the .get_duty_cycle callback

Commit 9fba738a53dda2 ("clk: add duty cycle support") added support for
getting and setting the duty cycle of a clock. This implements the
get_duty_cycle callback for PWM based clocks so the duty cycle is shown
in the debugfs output (/sys/kernel/debug/clk/clk_summary).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-pwm.c