summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <william.gray@linaro.org>2022-07-07 20:21:25 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-07-16 20:48:20 +0300
commite1d965cebe82e59e6a4c0cf115e5dbd7a9a0d9e5 (patch)
treee5e19cc29c949479a5e9e4145a8f4fa80a8ce449 /scripts
parent6cfd14c54b1f42f29097244c1b6208f8268d7d5b (diff)
downloadlinux-e1d965cebe82e59e6a4c0cf115e5dbd7a9a0d9e5.tar.xz
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 'scripts')
0 files changed, 0 insertions, 0 deletions