Re: [PATCH 2/9] iio: light: tsl2583: return zero in write_raw() on success
Brian Masney <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
Reviewed-by: Brian Masney <[email protected]>