diff options
| author | William Breathitt Gray <william.gray@linaro.org> | 2022-07-07 13:21:25 -0400 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-07-16 18:48:20 +0100 |
| commit | e1d965cebe82e59e6a4c0cf115e5dbd7a9a0d9e5 (patch) | |
| tree | e5e19cc29c949479a5e9e4145a8f4fa80a8ce449 /lib/mpi/mpi-sub-ui.c | |
| parent | 6cfd14c54b1f42f29097244c1b6208f8268d7d5b (diff) | |
iio: dac: cio-dac: Cleanup indexing for DAC writes
Simplify DAC write code by defining base member as u16 __iomem *; DAC
registers are 16-bit so this allows us to index each DAC channel
directly in a loop rather than calculating the offsets by multipling by
2 each time.
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/d9dab6696af7eabb2d46f5cbc7871329f499c1c9.1657213745.git.william.gray@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
