From: Damien Le Moal <dlemoal@kernel.org>
To: Li Jun <lijun01@kylinos.cn>,
cassel@kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH v2] ata: ahci_da850: switch to DEFINE_SIMPLE_DEV_PM_OPS
Date: Tue, 8 Sep 2026 12:43:30 +0900 [thread overview]
Message-ID: <e67aace9-3326-40bd-b8a7-e0bbc109d7f2@kernel.org> (raw)
In-Reply-To: <20260908025915.955528-1-lijun01@kylinos.cn>
On 9/8/26 11:59, Li Jun wrote:
> Replace the deprecated SIMPLE_DEV_PM_OPS macro with the recommended
> DEFINE_SIMPLE_DEV_PM_OPS.use pm_ptr(&ahci_da850_pm_ops) to complete
Please add a space after the period and capitalize the first letter of the
sentence:
s/.use/. Use/
> the API migration and allow the structure to be correctly dropped
> when CONFIG_PM=n.
>
> Signed-off-by: Li Jun <lijun01@kylinos.cn>
> ---
> changelogs:
> -add pm_ptr for ahci_da850_pm_ops in ahci_da850_driver.
> ---
> drivers/ata/ahci_da850.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c
> index 4e53ff96d712..0b390395679e 100644
> --- a/drivers/ata/ahci_da850.c
> +++ b/drivers/ata/ahci_da850.c
> @@ -218,7 +218,7 @@ static int ahci_da850_probe(struct platform_device *pdev)
> return rc;
> }
>
> -static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend,
> +static DEFINE_SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend,
> ahci_platform_resume);
Please align this to ahci_da850_pm_ops.
With both nits fixed, feel free to add:
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
>
> static const struct of_device_id ahci_da850_of_match[] = {
> @@ -233,7 +233,7 @@ static struct platform_driver ahci_da850_driver = {
> .driver = {
> .name = DRV_NAME,
> .of_match_table = ahci_da850_of_match,
> - .pm = &ahci_da850_pm_ops,
> + .pm = pm_ptr(&ahci_da850_pm_ops),
> },
> };
> module_platform_driver(ahci_da850_driver);
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2026-09-08 3:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 2:59 [PATCH v2] ata: ahci_da850: switch to DEFINE_SIMPLE_DEV_PM_OPS Li Jun
2026-09-08 3:43 ` Damien Le Moal [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=e67aace9-3326-40bd-b8a7-e0bbc109d7f2@kernel.org \
--to=dlemoal@kernel.org \
--cc=cassel@kernel.org \
--cc=lijun01@kylinos.cn \
--cc=linux-ide@vger.kernel.org \
/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