From: Corentin Labbe <clabbe@baylibre.com>
To: jdelvare@suse.com, linux@roeck-us.net
Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
Corentin Labbe <clabbe@baylibre.com>
Subject: [PATCH v2 0/2] hwmon: acpi_power_meter: convert to new hwmon API
Date: Wed, 4 May 2022 10:30:26 +0000 [thread overview]
Message-ID: <20220504103028.493155-1-clabbe@baylibre.com> (raw)
Hello
I dont like warning in my boot log such as:
hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
So I did the conversion to the new API.
The patchset was tested with:
- sensors
- cat all values directly in sysfs (for ones not displayed by sensors like oem_info, model_number, etc..)
But due to missing functionnality on my hardware some code path was not
tested. (Like all cap_xxx)
Regards
Change since v1:
- use really the new API
Corentin Labbe (2):
hwmon: acpi_power_meter: fix style issue
hwmon: acpi_power_meter: convert to hwmon_device_register_with_info
drivers/hwmon/acpi_power_meter.c | 524 +++++++++++++------------------
1 file changed, 227 insertions(+), 297 deletions(-)
--
2.35.1
next reply other threads:[~2022-05-04 10:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 10:30 Corentin Labbe [this message]
2022-05-04 10:30 ` [PATCH v2 1/2] hwmon: acpi_power_meter: fix style issue Corentin Labbe
2022-05-04 10:30 ` [PATCH v2 2/2] hwmon: acpi_power_meter: convert to hwmon_device_register_with_info Corentin Labbe
2022-05-04 20:00 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220504103028.493155-1-clabbe@baylibre.com \
--to=clabbe@baylibre.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®