counter: 104-quad-8: Migrate to the regmap API
authorWilliam Breathitt Gray <william.gray@linaro.org>
Mon, 17 Apr 2023 19:50:50 +0000 (15:50 -0400)
committerWilliam Breathitt Gray <william.gray@linaro.org>
Fri, 19 May 2023 00:39:46 +0000 (20:39 -0400)
commit98ffe02529117095fad0399ce16235d66b8b5f8d
treee16ad63b0de8a1d702c43edfddf662b64988b38f
parent142c8622b5b28f4fa2b5609c69474e03e723779f
counter: 104-quad-8: Migrate to the regmap API

The regmap API supports IO port accessors so we can take advantage of
regmap abstractions rather than handling access to the device registers
directly in the driver. With regmap we get boundary checks, read-write
permissions, operation synchronization locks, and more for free. Most
important of all, rather than rolling our own we utilize implementations
that are known to work and gain from any future improvements and fixes
that come.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/1f1f7920d2be94aedb6fdf49f429fe6137c8cb24.1681753140.git.william.gray@linaro.org/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
drivers/counter/104-quad-8.c
drivers/counter/Kconfig