From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: Triet Hoang <triet.hoang.dev@gmail.com>
Cc: arnd@arndb.de, gregkh@linuxfoundation.org,
eric.piel@tremplin-utc.net, 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:14:21 +0200 [thread overview]
Message-ID: <aol2fZXYA_661Wzq@qmqm.qmqm.pl> (raw)
In-Reply-To: <20260821121315.23574-1-triet.hoang.dev@gmail.com>
On Fri, Aug 21, 2026 at 12:13:15PM +0000, 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>
> ---
[...]
> drivers/misc/cb710/core.c | 8 ++++----
Acked-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
next prev parent reply other threads:[~2026-08-22 10:24 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 [this message]
2026-08-22 10:19 ` Arnd Bergmann
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=aol2fZXYA_661Wzq@qmqm.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=arnd@arndb.de \
--cc=eric.piel@tremplin-utc.net \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®