commit | ebe88b6ae41ff8f2b48608b6019c4341aa24bcea | [log] [tgz] |
---|---|---|
author | Stefan Wahren <stefan.wahren@i2se.com> | Tue Dec 01 22:55:39 2015 +0000 |
committer | Thierry Reding <thierry.reding@gmail.com> | Wed Dec 16 16:44:36 2015 +0100 |
tree | 33c3e4590e449e3988d58d6d426853fdf920d72d | |
parent | c7b91b33cf446ec09eedf4594cff8d7b85ef6870 [diff] |
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: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>