summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-imx27.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2019-10-17 13:21:15 +0200
committerThierry Reding <thierry.reding@gmail.com>2019-12-09 10:05:42 +0100
commit1db37f9561b2b3f57d84b6253a9cd97f6289f8e1 (patch)
treed18480a1e22b7443c3869c8d60d9966414182839 /drivers/pwm/pwm-imx27.c
parentcfc4c189bc70b1acc17e6f1abf1dc1c0ae890bd8 (diff)
pwm: cros-ec: Cache duty cycle value
The ChromeOS embedded controller doesn't differentiate between disabled and duty cycle being 0. In order not to potentially confuse consumers, cache the duty cycle and return the cached value instead of the real value when the PWM is disabled. Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
0 files changed, 0 insertions, 0 deletions