[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 8 Aug 2022 18:13:08 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: "Luke D. Jones" <luke@...nes.dev>
Cc: Hans de Goede <hdegoede@...hat.com>,
Mark Gross <markgross@...nel.org>,
Platform Driver <platform-driver-x86@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 5/6] asus-wmi: Convert all attr-show to use sysfs_emit
On Mon, Aug 8, 2022 at 5:08 AM Luke D. Jones <luke@...nes.dev> wrote:
>
> This changes all *_show attributes in asus-wmi.c to use sysfs_emit
We refer to functions as func().
> instead of the older method of writing to the output buffer manually.
...
> - return sprintf(buf, "%d\n", value < 0 ? -1 : value*100);
> + return sysfs_emit(buf, "%d\n", value < 0 ? -1 : value*100);
While at it, put spaces around *: 'value * 100'.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists