counter: 104-quad-8: Refactor to buffer states for CMR, IOR, and IDR
authorWilliam Breathitt Gray <william.gray@linaro.org>
Mon, 17 Apr 2023 19:50:48 +0000 (15:50 -0400)
committerWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 19 May 2023 00:39:46 +0000 (20:39 -0400)
commit4d8df1689fadec2be9fb585c24f291d0bc3af532
tree6f40c2cd1abd8ecc616887e36cf7a63c54b70f3e
parent398abaabfaf7d648c22ce87a231102fcdd2c9e60
counter: 104-quad-8: Refactor to buffer states for CMR, IOR, and IDR

The 104-quad-8 driver buffers the device configuration states
separately, however each device has only three control registers: CMR,
IOR, and IDR. Refactoring to buffer the states of these control
registers rather than each configuration separately results in succinct
code that more closely matches what is happening on the device.

Link: https://lore.kernel.org/r/48071415aed43ecdd8595174191b0d906205a9e3.1681753140.git.william.gray@linaro.org/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
drivers/counter/104-quad-8.c