summaryrefslogtreecommitdiff
path: root/include/linux/memory
diff options
context:
space:
mode:
authorKyle Hsieh <kylehsieh1995@gmail.com>2026-03-25 05:24:21 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-25 22:48:45 +0300
commit999ca38066302347c94fda49db7a33ce87def5b6 (patch)
tree3d40cfe2d312a6c396384dd4739a2aa8e1e8d82f /include/linux/memory
parent732df35bbb94c06099cf8c64076233347b278516 (diff)
downloadlinux-999ca38066302347c94fda49db7a33ce87def5b6.tar.xz
iio: adc: ltc2309: explicitly assign hex values to channel enums
The current ltc2309_channels enum relies on implicit sequential assignment. While this works for the 8-channel LTC2309, it is not intuitive and makes it difficult to support other chips in the same family that might have different bit mappings. Explicitly assign hex values to the enum members based on the channel selection bits defined in the datasheet. This improves code readability and provides a consistent pattern for future chip support. Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/memory')
0 files changed, 0 insertions, 0 deletions