diff options
author | Martin Blumenstingl <[email protected]> | 2019-06-12 21:59:05 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2019-06-26 11:39:09 +0200 |
commit | 8bbf316453818a47468702f26804e4ced3065c0f (patch) | |
tree | da9214502c4d5d2a1cf51cdd5b3c761cb57e50b4 /net/lapb/lapb_in.c | |
parent | a50a49a45140a85e3cb8d02859e13b78fafd030b (diff) |
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 <[email protected]>
Signed-off-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions