Re: [PATCH 6/7] hwmon: iio: Add min/max support
From: Sean Anderson
Date: Thu Jul 17 2025 - 12:13:18 EST
On 7/16/25 06:01, Andy Shevchenko wrote:
> 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'...
>
Documentation for what? sysfs_emit just says it's aware of the
PAGE_SIZE buffer. Nothing about that it "must" be used.
--Sean