pwm: fsl-ftm: Use write protection for prescaler & polarity

Modifying the prescaler or polarity value must be done with the
write protection disabled. Currently this is working by chance as
the write protection is in a disabled state by default.
This patch makes sure that we enable/disable the write protection
when needed.

Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Patrick Havelange 2019-06-12 16:12:46 +02:00 • committed by Thierry Reding
commit a2a28229cd