diff options
| author | Akinobu Mita <[email protected]> | 2018-06-26 00:22:41 +0900 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2018-06-30 18:25:05 +0100 |
| commit | 9048f1f18a70a01eaa3c8e7166fdb2538929d780 (patch) | |
| tree | 9cbfb202a790226d263dbb45e673cb6811c08e77 /tools/perf/scripts/python | |
| parent | 4b5de1fa97b9932db0e989afe7dba3029fbd4545 (diff) | |
iio: accel: adxl345: convert address field usage in iio_chan_spec
Currently the address field in iio_chan_spec is filled with an accel
data register address for the corresponding axis.
In preparation for adding calibration offset support, this sets the
address field to the index of accel data registers instead of the actual
register address.
This change makes it easier to access both accel registers and
calibration offset registers with fewer lines of code as these are
located in X-axis, Y-axis, Z-axis order.
Cc: Eva Rachel Retuya <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions