diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2019-10-17 13:21:15 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-12-09 10:05:42 +0100 |
commit | 1db37f9561b2b3f57d84b6253a9cd97f6289f8e1 (patch) | |
tree | d18480a1e22b7443c3869c8d60d9966414182839 /drivers/pwm/pwm-imx27.c | |
parent | cfc4c189bc70b1acc17e6f1abf1dc1c0ae890bd8 (diff) | |
download | linux-1db37f9561b2b3f57d84b6253a9cd97f6289f8e1.tar.gz linux-1db37f9561b2b3f57d84b6253a9cd97f6289f8e1.tar.bz2 linux-1db37f9561b2b3f57d84b6253a9cd97f6289f8e1.zip |
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