pwm: rockchip: Move the configuration of polarity
authorDavid Wu <david.wu@rock-chips.com>
Tue, 8 Aug 2017 15:38:32 +0000 (23:38 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 18 Aug 2017 15:40:05 +0000 (17:40 +0200)
commitbc834d7b07b4e57c89607c929dcb5eabb17b47a7
tree8aca756437683da614fcf9f410da7825f080858a
parented054693d77f9c98da18f7c3ff19dfa41692520f
pwm: rockchip: Move the configuration of polarity

It is usually possible to configure the polarity, cycle and duty all at
once, so that the polarity and cycle and duty are applied atomically.
Move it from rockchip_pwm_set_enable() into rockchip_pwm_config(), as
well as prepare for the next atomic update commit.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rockchip.c