Re: [PATCH 2/9] iio: light: tsl2583: return zero in write_raw() on success

From: Brian Masney

Date: Tue Jul 28 2026 - 16:03:26 EST


On Tue, Jul 28, 2026 at 03:47:39AM +0900, Sang-Heon Jeon wrote:
> 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@xxxxxxxxx>

Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>