From: W_Armin@gmx.de
To: hdegoede@redhat.com
Cc: linux-hwmon@vger.kernel.org, linux@roeck-us.net, jdelvare@suse.com
Subject: [PATCH 0/4] hwmon: (sch56xx) Use devres for watchdog and platform_device_register_simple()
Date: Fri, 7 May 2021 23:24:00 +0200 [thread overview]
Message-ID: <20210507212404.6781-1-W_Armin@gmx.de> (raw)
From: Armin Wolf <W_Armin@gmx.de>
Since it was requested to use devres for the watchdog device,
use devm_watchdog_register() for watchdog registration and do
some small cleanups.
Also use platform_device_register_simple() in sch56xx_device_add().
Tested on a Fujitsu Esprimo P720.
Armin Wolf (4):
hwmon: (sch56xx) Use devres functions for watchdog
hwmon: (sch56xx-common) Use strscpy
hwmon: (sch56xx-common) Use helper function
hwmon: (sch56xx-common) Simplify sch56xx_device_add
drivers/hwmon/sch5627.c | 12 ++------
drivers/hwmon/sch5636.c | 9 ++----
drivers/hwmon/sch56xx-common.c | 50 ++++++++--------------------------
3 files changed, 16 insertions(+), 55 deletions(-)
--
2.20.1
next reply other threads:[~2021-05-07 21:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-07 21:24 W_Armin [this message]
2021-05-07 21:24 ` [PATCH 1/4] hwmon: (sch56xx) Use devres functions for watchdog W_Armin
2021-05-07 21:43 ` Guenter Roeck
2021-05-07 21:24 ` [PATCH 2/4] hwmon: (sch56xx-common) Use strscpy W_Armin
2021-05-07 21:24 ` [PATCH 3/4] hwmon: (sch56xx-common) Use helper function W_Armin
2021-05-07 21:24 ` [PATCH 4/4] hwmon: (sch56xx-common) Simplify sch56xx_device_add W_Armin
2021-05-08 8:59 ` [PATCH 0/4] hwmon: (sch56xx) Use devres for watchdog and platform_device_register_simple() Hans de Goede
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=20210507212404.6781-1-W_Armin@gmx.de \
--to=w_armin@gmx.de \
--cc=hdegoede@redhat.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@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;
as well as URLs for NNTP newsgroup(s).