summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArnav Kapoor <kapoorarnav43@gmail.com>2026-10-11 10:24:08 +0530
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:38:41 +0000
commit0f8945d5da179594ed7ba058eeb363964438d2d7 (patch)
treebdeef9cf174e2f9fac26e88c37fd1dd5a09168d2 /tools/perf/scripts/python
parentef5c183a863bb69bf019a2d2ae0e1bfdaebe6222 (diff)
iio: common: cros_ec_sensors: use sensor_scale union member for CALIBSCALE
The IIO_CHAN_INFO_CALIBSCALE read and write paths send MOTIONSENSE_CMD_SENSOR_SCALE, but set the flags through the sensor_offset member of the request union, while the scale values in the write path are filled through sensor_scale. This only works because the sensor_offset and sensor_scale structs of struct ec_params_motion_sense happen to place flags at the same offset. Use the sensor_scale member that matches the command, so all fields of the request are set through the same struct. No functional change. Fixes: ed1f2e85da79 ("iio: cros_ec: Add calibscale for 3d MEMS") Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions