diff options
| author | 2026-09-20 20:05:26 +0200 | |
|---|---|---|
| committer | 2026-09-28 17:07:33 +0100 | |
| commit | b3f6dc30e26eb26885a21c067d70054fb5afe0d6 (patch) | |
| tree | 88fd985af913932c61334f356a35cc2ea6f9cac4 /scripts/Makefile.thinlto | |
| parent | iio: 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
