diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-06-12 21:59:02 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-06-26 11:39:08 +0200 |
commit | b79c3670e120c6c6aee313c56acd9bbb13db310f (patch) | |
tree | 3459bebd4bd0b6a943a4976164f8d339d82d32d4 /drivers/hwmon/ltc4245.c | |
parent | 33cefd84d26b59e071b3172b0e3ca979163f39eb (diff) | |
download | linux-b79c3670e120c6c6aee313c56acd9bbb13db310f.tar.bz2 |
pwm: meson: Don't duplicate the polarity internally
Let meson_pwm_calc() use the polarity from struct pwm_state directly.
This removes a level of indirection where meson_pwm_apply() first had to
set a driver-internal inverter mask which was then only used by
meson_pwm_calc().
Instead of adding the polarity as parameter to meson_pwm_calc() switch
to struct pwm_state directly to make it easier to see where the
parameters are actually coming from.
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/hwmon/ltc4245.c')
0 files changed, 0 insertions, 0 deletions