summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-06-12 21:59:00 +0200
committerThierry Reding <thierry.reding@gmail.com>2019-06-26 11:39:07 +0200
commit181164b669c91eccafa2d276ac32873310dec465 (patch)
tree07e657d032927240978e65c528678060238279f0 /usr
parentba4004c715c906474ae84f1f9a97f55d3259c6bd (diff)
downloadlinux-181164b669c91eccafa2d276ac32873310dec465.tar.bz2
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 <narmstrong@baylibre.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions