aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJoshua Crofts <joshua.crofts1@gmail.com>2026-09-20 20:05:26 +0200
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:33 +0100
commitb3f6dc30e26eb26885a21c067d70054fb5afe0d6 (patch)
tree88fd985af913932c61334f356a35cc2ea6f9cac4 /scripts/Makefile.thinlto
parentiio: magnetometer: ak8975: use temporary variable for struct device (diff)
iio: magnetometer: ak8975: add scan mask index enum
Add an enum to explicitly define scan mask indexes for the X, Y, Z and timestamp channels. Also, update the struct iio_chan_spec to use said enum for the .scan_index parameter. This prevents magic numbers from obscuring the hardware channel mapping and improves code style. No functional change. Suggested-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions