counter: 104-quad-8: Implement and utilize register structures
authorWilliam Breathitt Gray <william.gray@linaro.org>
Thu, 14 Jul 2022 16:07:14 +0000 (12:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jul 2022 17:17:41 +0000 (19:17 +0200)
commitdaae1ee572d1f99daddef26afe6c6fc7aeea741d
treea419985893fdd90b5bf9aeca90e0a28be22b1c11
parentb6e9cded90d46b1066a1ca260d8b5ecf67787aba
counter: 104-quad-8: Implement and utilize register structures

Reduce magic numbers and improve code readability by implementing and
utilizing named register data structures.

Link: https://lore.kernel.org/r/20220707171709.36010-1-william.gray@linaro.org/
Cc: Syed Nayyar Waris <syednwaris@gmail.com>
Tested-by: Fred Eckert <Frede@cmslaser.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/285fdc7c03892251f50bdbf2c28c19998243a6a3.1657813472.git.william.gray@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/counter/104-quad-8.c