diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-28 03:47:39 +0900 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-08-03 22:32:32 +0100 |
| commit | 42e8791841e0677418a3ccc97fa5c22a1455f417 (patch) | |
| tree | 933182fd09f5f9189976a7dfc4afc7bc98609e9e /tools/perf/scripts/python/stackcollapse.py | |
| parent | 55b75622829779223b9e32aa9600a8651d3e2df4 (diff) | |
iio: light: tsl2583: return zero in write_raw() on success
tsl2583_write_raw() returns the value of pm_runtime_put_autosuspend(),
which is 1 if the device is already runtime suspended.
In that case write() on the sysfs attribute returns 1 instead of the
number of bytes written. Make tsl2583_write_raw() always return zero
on success.
Fixes: 371894f5d1a0 ("iio: tsl2583: add runtime power management support")
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
