Re: [PATCH 1/9] iio: light: isl29028: 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:38AM +0900, Sang-Heon Jeon wrote:
> isl29028_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 isl29028_write_raw() always return zero
> on success.
>
> Fixes: 2db5054ac28d ("staging: iio: isl29028: add runtime power management support")
> Signed-off-by: Sang-Heon Jeon <[email protected]>
Reviewed-by: Brian Masney <[email protected]>