counter: 104-quad-8: Utilize bitfield access macros
authorWilliam Breathitt Gray <william.gray@linaro.org>
Mon, 17 Apr 2023 19:50:47 +0000 (15:50 -0400)
committerWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 19 May 2023 00:39:46 +0000 (20:39 -0400)
commit398abaabfaf7d648c22ce87a231102fcdd2c9e60
tree1f6bfc2e7dd7c095a6755371fe2e658d3e75399b
parent228354ed692faa08f40f2630658c0771f77da457
counter: 104-quad-8: Utilize bitfield access macros

The 104-QUAD-8 features several registers with various bitfields.
Utilize bitfield access macros such as u8_get_bits() and
u8_encode_bits() to make the code easier to read and the intent clearer.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Link: https://lore.kernel.org/r/7cea5ad049c75d8d1c6f25e288aa743a8d2a25d8.1681753140.git.william.gray@linaro.org/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
drivers/counter/104-quad-8.c