iio: dac: cio-dac: Migrate to the regmap API
authorWilliam Breathitt Gray <william.gray@linaro.org>
Sat, 11 Mar 2023 14:02:18 +0000 (09:02 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Mar 2023 16:42:52 +0000 (16:42 +0000)
commit87a1ff66a0e57d9022665d24793f31fc54de182d
tree8f98bf43b8ac8f2ed115ccd7d5cfce75a9f7aa66
parent76f2c491a0cae850ad7413e89f62673e6ef90a97
iio: dac: cio-dac: 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.

Includes trivial header inclusion tidy up.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/20230311140218.74920-1-william.gray@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/Kconfig
drivers/iio/dac/cio-dac.c