iio: adc: stx104: Implement and utilize register structures
authorWilliam Breathitt Gray <william.gray@linaro.org>
Thu, 7 Jul 2022 17:21:24 +0000 (13:21 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Jul 2022 17:48:19 +0000 (18:48 +0100)
commit6cfd14c54b1f42f29097244c1b6208f8268d7d5b
treedd5e5ab53c944d24176695e767a2e5b3672749f5
parent98a30ae0b37cfa5f5b07db532c69d787780d6664
iio: adc: stx104: Implement and utilize register structures

Reduce magic numbers and improve code readability by implementing and
utilizing named register data structures.

Tested-by: Fred Eckert <Frede@cmslaser.com>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/8cb91d5b53e57b066120e42ea07000d6c7ef5543.1657213745.git.william.gray@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stx104.c