UPSTREAM: pwm: Use pwm_get/set_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 14 Apr 2016 19:17:22 +0000 (21:17 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 9 Mar 2017 01:36:59 +0000 (09:36 +0800)
commit32ce428bc85e1153e85e82bfa6cd3d8081482d3d
tree843957acd36fecd6e6611aa77d862e1c700ccf4a
parent745c694a6095832147ee2d51eb8abe2c02b499fb
UPSTREAM: pwm: Use pwm_get/set_xxx() helpers where appropriate

Use pwm_get/set_xxx() helpers instead of directly accessing the pwm->xxx
field. Doing that will ease adaptation of the PWM framework to support
atomic update.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 4b58896f72176b781816a9e14dcea5f755b19b5c)

Change-Id: Ic6bdaf2017bb292ef920604fba86805999cebf0c
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
drivers/pwm/pwm-crc.c
drivers/pwm/pwm-lpc18xx-sct.c
drivers/pwm/pwm-sun4i.c