]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:26 +0000 (14:23 +0200)
commitcadf8f2d7c9d06c3574a23745069fe4a73b62312
treeb4f8a69da547a8e9d48b41f555073210e2f66704
parent6089d354346f8e04f4354f09f873ae5d94cd8e05
iio: adc: stx104: Implement and utilize register structures

[ Upstream commit 6cfd14c54b1f42f29097244c1b6208f8268d7d5b ]

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>
Stable-dep-of: 4f9b80aefb9e ("iio: addac: stx104: Fix race condition when converting analog-to-digital")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/stx104.c