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)
commit09a7e4a3d9fcb95ade2cb02167e85fbeb8315ce0
treeae68e6ab54506c65b510d83aeda3c94906a7faca
parent43a276b003ed2e03de9d94b02a1ba49c1849b931
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