Hello, this series eventually changes the prototype of pwm_apply_state to take a const struct pwm_state *, see the last patch for a rationale. Changes since v2 apart from rebasing and so covering a few more drivers is mainly addressing the concern that after state was rounded and applied at least pwm_get_state should return the rounded values. See patch 2. Uwe Kleine-König (6): pwm: introduce local struct pwm_chip in pwm_apply_state() pwm: let pwm_get_state() return the last implemented state pwm: rockchip: Don't update the state for the caller of pwm_apply_state() pwm: sun4i: Don't update the state for the caller of pwm_apply_state() pwm: fsl-ftm: Don't update the state for the caller of pwm_apply_state() pwm: ensure pwm_apply_state() doesn't modify the state argument drivers/pwm/core.c | 39 +++++++++++++++++++++-------------- drivers/pwm/pwm-atmel-hlcdc.c | 2 +- drivers/pwm/pwm-atmel.c | 2 +- drivers/pwm/pwm-bcm-iproc.c | 2 +- drivers/pwm/pwm-cros-ec.c | 2 +- drivers/pwm/pwm-fsl-ftm.c | 8 ++----- drivers/pwm/pwm-hibvt.c | 2 +- drivers/pwm/pwm-imx-tpm.c | 4 ++-- drivers/pwm/pwm-imx27.c | 2 +- drivers/pwm/pwm-jz4740.c | 2 +- drivers/pwm/pwm-lpss.c | 2 +- drivers/pwm/pwm-meson.c | 4 ++-- drivers/pwm/pwm-rcar.c | 2 +- drivers/pwm/pwm-rockchip.c | 10 ++------- drivers/pwm/pwm-sifive.c | 2 +- drivers/pwm/pwm-stm32-lp.c | 2 +- drivers/pwm/pwm-stm32.c | 4 ++-- drivers/pwm/pwm-sun4i.c | 10 ++------- drivers/pwm/pwm-zx.c | 2 +- include/linux/pwm.h | 4 ++-- 20 files changed, 49 insertions(+), 58 deletions(-) -- 2.20.1 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-rockchip