Re: [PATCH v3] staging: iio: adt7316: use kstrtobool() for sysfs boolean parsing

From: Jonathan Cameron

Date: Sat Oct 17 2026 - 18:18:03 EST


On Wed, 14 Oct 2026 12:11:11 +0300
Abdelnasser Hussein <abdelnasserhussein11@xxxxxxxxx> wrote:

> Replace manual character checks (e.g., buf[0] == '1') with the standard
> kstrtobool() API in sysfs store functions.
>
> Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
> Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@xxxxxxxxx>
Work on this driver always feels like we are dancing around a complete
mess. The thing needs radical modifications so most likely changes
like this are to code that will go away.

Still that doesn't mean small changes aren't going to help whoever
does that work read the driver more easily.

This looks fine to me, but given the potential issue with Josh's tag
I'll leave it until that is addressed. Perhaps I just missed an email!

Jonathan