aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorMartin Blumenstingl <[email protected]>2019-06-12 21:59:00 +0200
committerThierry Reding <[email protected]>2019-06-26 11:39:07 +0200
commit181164b669c91eccafa2d276ac32873310dec465 (patch)
tree07e657d032927240978e65c528678060238279f0 /scripts/gdb/linux/timerlist.py
parentba4004c715c906474ae84f1f9a97f55d3259c6bd (diff)
pwm: meson: Use GENMASK and FIELD_PREP for the lo and hi values
meson_pwm_calc() ensures that "lo" is always less than 16 bits wide (otherwise it would overflow into the "hi" part of the REG_PWM_{A,B} register). Use GENMASK and FIELD_PREP for the lo and hi values to make it easier to spot how wide these are internally. Additionally this is a preparation step for the .get_state() implementation where the GENMASK() for lo and hi becomes handy because it can be used with FIELD_GET() to extract the values from the register REG_PWM_{A,B} register. No functional changes intended. Reviewed-by: Neil Armstrong <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions