aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/Makefile
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-06-12 21:59:05 +0200
committerThierry Reding <thierry.reding@gmail.com>2019-06-26 11:39:09 +0200
commit8bbf316453818a47468702f26804e4ced3065c0f (patch)
treeda9214502c4d5d2a1cf51cdd5b3c761cb57e50b4 /drivers/pwm/Makefile
parentpwm: meson: Add the meson_pwm_channel data to struct meson_pwm (diff)
downloadlinux-dev-8bbf316453818a47468702f26804e4ced3065c0f.tar.xz
linux-dev-8bbf316453818a47468702f26804e4ced3065c0f.zip
pwm: meson: Add the per-channel register offsets and bits in a struct
Introduce struct meson_pwm_channel_data which contains the per-channel offsets for the PWM register and REG_MISC_AB bits. Replace the existing switch (pwm->hwpwm) statements with an access to the new struct. This simplifies the code and will make it easier to implement pwm_ops.get_state() because the switch-case which all per-channel registers and offsets (as previously implemented in meson_pwm_enable()) doesn't have to be duplicated. No functional changes intended. 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/pwm/Makefile')
0 files changed, 0 insertions, 0 deletions