Commit 08d8c9f5 authored by George Stark's avatar George Stark Committed by Uwe Kleine-König
Browse files

pwm: meson: Simplify meson_pwm_cnt_to_ns()



meson_pwm_cnt_to_ns() uses clock rate got from clk_get_rate(). clk object
is getting from driver's private data thru several steps. Since
meson_pwm_cnt_to_ns() is called several times from a single scope it's
easier to get clock rate once and pass it as parameter.

Signed-off-by: default avatarGeorge Stark <gnstark@salutedevices.com>
Link: https://lore.kernel.org/r/20241225105639.1787237-2-gnstark@salutedevices.com


Signed-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent 5dca8a93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment