Re: [PATCH 6/7] hwmon: iio: Add min/max support

From: Andy Shevchenko
Date: Wed Jul 16 2025 - 06:02:24 EST


On Tue, Jul 15, 2025 at 12:05:15PM -0400, Sean Anderson wrote:
> On 7/15/25 04:41, Andy Shevchenko wrote:
> > On Mon, Jul 14, 2025 at 09:20:22PM -0400, Sean Anderson wrote:

...

> >> + return sprintf(buf, "%d\n", result);
> >
> > Mustn't be sysfs_emit() ?
>
> It doesn't matter in this case (as %d can never emit more
> than 20ish characters), but that works too.

Have you read the documentation? It uses word 'must'...

--
With Best Regards,
Andy Shevchenko