Skip to content
Commit ebe88b6a authored by Stefan Wahren's avatar Stefan Wahren Committed by Thierry Reding
Browse files

pwm: bcm2835: Calculate scaler in ->config()



Currently pwm-bcm2835 assumes a fixed clock rate and stores the
resulting scaler in the driver structure. But with the upcoming
PWM clock support for clk-bcm2835 the rate could change, so
calculate the scaler in the ->config() callback.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent c7b91b33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment