soc: mediatek: mtk-svs: Use bitfield access macros where possible
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 25 Aug 2022 18:46:16 +0000 (14:46 -0400)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 26 Aug 2022 15:32:12 +0000 (17:32 +0200)
commita92438c5a30a27b6791da025306a45478a6ac7a4
tree7da7b9ba51d789e5d55b7fcc52e0e16801abab3a
parent43819e3853306625275f1ada7416453117a9aabf
soc: mediatek: mtk-svs: Use bitfield access macros where possible

In order to enhance readability and safety during registers setup
and value retrieval, redefine a few register related macros and
convert all open-coded instances of bitfield setting/retrieval
to use the FIELD_PREP() and FIELD_GET() macros.
While at it, some macros were renamed to further enhance readability.

This commit brings no functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220825184616.2118870-3-nfraprado@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-svs.c