diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2018-08-14 19:50:59 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-10-09 12:58:42 +0300 |
commit | e6bcca0890b96a3c2c5e72169de72ba4d2b01b78 (patch) | |
tree | 4773454f176ecf3c97fdb8679a5cb8b0d09a7f67 /lib/klist.c | |
parent | 0b193400b3f2b7af446f5a624f8af51b34d6f5d1 (diff) | |
download | linux-e6bcca0890b96a3c2c5e72169de72ba4d2b01b78.tar.xz |
backlight: pwm_bl: Switch to using "atomic" PWM API
The "atomic" API allows us to configure PWM period and duty_cycle and
enable it in one call.
The patch also moves the pwm_init_state just before any use of the
pwm_state struct, this fixes a potential bug where pwm_get_state
can be called before pwm_init_state.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'lib/klist.c')
0 files changed, 0 insertions, 0 deletions