]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Move the enabled/disabled info into pwm_state
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 14 Apr 2016 19:17:39 +0000 (21:17 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 17 May 2016 12:48:02 +0000 (14:48 +0200)
commit55ccaf0434e585bb8ed18f4bd04efcbb802c2099
treeae68e6ab54506c65b510d83aeda3c94906a7faca
parent31fc81548ebfbe42dd84b125811e322471f63bb6
pwm: Move the enabled/disabled info into pwm_state

Prepare the transition to PWM atomic update by moving the enabled and
disabled state into the pwm_state struct. This way we can easily update
the whole PWM state by copying the new state in the ->state field.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
include/linux/pwm.h