]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e0508c9e8816bab7b9c62ab4a12818ba3279e86
treedd5e5ab53c944d24176695e767a2e5b3672749f5
parenta6594775ec24f3eeb02b48158e7e4bf4e0566ab2
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