summaryrefslogtreecommitdiff
path: root/drivers/counter/Kconfig
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <william.gray@linaro.org>2023-04-17 22:50:50 +0300
committerWilliam Breathitt Gray <william.gray@linaro.org>2023-05-19 03:39:46 +0300
commit98ffe02529117095fad0399ce16235d66b8b5f8d (patch)
treee16ad63b0de8a1d702c43edfddf662b64988b38f /drivers/counter/Kconfig
parent142c8622b5b28f4fa2b5609c69474e03e723779f (diff)
downloadlinux-98ffe02529117095fad0399ce16235d66b8b5f8d.tar.xz
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>
Diffstat (limited to 'drivers/counter/Kconfig')
-rw-r--r--drivers/counter/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
index 3000816f8f95..f8b2a6508bb3 100644
--- a/drivers/counter/Kconfig
+++ b/drivers/counter/Kconfig
@@ -16,6 +16,7 @@ config 104_QUAD_8
tristate "ACCES 104-QUAD-8 driver"
depends on (PC104 && X86) || COMPILE_TEST
select ISA_BUS_API
+ select REGMAP_MMIO
help
Say yes here to build support for the ACCES 104-QUAD-8 quadrature
encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).