From: "Arnd Bergmann" <arnd@arndb.de>
To: "Triet Hoang" <triet.hoang.dev@gmail.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
"Eric Piel" <eric.piel@tremplin-utc.net>,
"Jiri Slaby" <jirislaby@kernel.org>,
oakad@yahoo.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: misc: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
Date: Sat, 22 Aug 2026 12:19:40 +0200 [thread overview]
Message-ID: <ed4ab1a6-161b-45fc-b739-da20186a33a0@app.fastmail.com> (raw)
In-Reply-To: <20260821121315.23574-1-triet.hoang.dev@gmail.com>
On Fri, Aug 21, 2026, at 14:13, Triet Hoang wrote:
> Convert the deprecated SIMPLE_DEV_PM_OPS
> to DEFINE_SIMPLE_DEV_PM_OPS
> and pm_sleep_ptr().
>
> This lets us drop the __maybe_unused annotations
> from the suspend and resume callbacks,
> also reduces kernel size in case CONFIG_PM or
> CONFIG_PM_SLEEP is disabled.
>
> Also allow to remove #ifdef CONFIG_PM_SLEEP.
>
> Signed-off-by: Triet Hoang <triet.hoang.dev@gmail.com>
These all look good to me, thanks for helping out here!
Acked-by: Arnd Bergmann <arnd@arndb.de>
prev parent reply other threads:[~2026-08-22 10:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 12:13 Triet Hoang
2026-08-22 10:14 ` Michał Mirosław
2026-08-22 10:19 ` Arnd Bergmann [this message]
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=ed4ab1a6-161b-45fc-b739-da20186a33a0@app.fastmail.com \
--to=arnd@arndb.de \
--cc=eric.piel@tremplin-utc.net \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mirq-linux@rere.qmqm.pl \
--cc=oakad@yahoo.com \
--cc=triet.hoang.dev@gmail.com \
/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®