From patchwork Fri Nov 11 08:56:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 18567 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp626163wru; Fri, 11 Nov 2022 01:00:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DIetpuCDtENAjJRgcr9nobDQEX4+Loa60RAH03JgHnuT7/LwrRZzoG+AehUGns2vR35hN X-Received: by 2002:a05:6402:2b88:b0:461:b825:d7cb with SMTP id fj8-20020a0564022b8800b00461b825d7cbmr623580edb.167.1668157210163; Fri, 11 Nov 2022 01:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668157210; cv=none; d=google.com; s=arc-20160816; b=L2r9f1c31c54OK30XvM3Asbq2bf4uPDnstuudIpVay9eLBuCVAi5eyNta57icxw2ag TzUaa9uZlvAKQfWtVtln5U5gqQYOIS3R2Eo/MGWwEHnDBf7C6NaeBrVVSb4tzCO2p9/H 6wROk3gOyvG5te41pPsL3yhL2A3LzpepkyzjjzyM5J3t+2oK8DDn+lfdfQK+esNShLIo mGr4k7McAZIfg1tFU2IJDvuBGdLEqNuDsLEwvx1CUkTZcW8fj6aiKW+qt+s4WEbQ1VW1 GmXx9f0RUW+7ypsy+YLX7+E+gdW2LW2Vxmwemt6Iu4wwAzgiImPoNBUYnLCAzleMeEL/ jYgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ePtMYhK5Xx5laOMjrvdqzRhoqzpCt4cdHvp/cn686DM=; b=nfU48UGOEl0J8WYWkY/U/TrG8VNw6EbkgiAhElni7SDFWz21tu25H4jq+zTgWNsw3U g3RbVQwo0ihwJIBGAjS3jXfhRfdu8L7HTK6xWOHHsPx3R3BezWgAra5uyLdZadPd7x9O b8bNWWzStS0mRBLx5bQJ37aC5ehlDJo9Fjp8JobyncjSt2Ua35J2QE3UhKr/NXzlzk5p yJGJT+TsH30n1uVafp5jxKRnLsBKBd/VxuiE4/MuE9WvuzZHVKrtnzggNYnmBeoDeaKn Yxf+/kIT4hESMqD1abd8JKTcm4PtHlZvytEgwg+IRinWlWV5Hw2p4Q0YSwWtDg54po/C ztvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cL2LKzyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020a056402159a00b00463c5d64f30si1587055edv.557.2022.11.11.00.59.45; Fri, 11 Nov 2022 01:00:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cL2LKzyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233490AbiKKI6J (ORCPT + 99 others); Fri, 11 Nov 2022 03:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbiKKI51 (ORCPT ); Fri, 11 Nov 2022 03:57:27 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A97F7E98F; Fri, 11 Nov 2022 00:57:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 15346B82471; Fri, 11 Nov 2022 08:57:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B99E7C433D6; Fri, 11 Nov 2022 08:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668157042; bh=5C1jlX48Nchjosb1BQmNB/f76zJc6sJZFDo1LuueAHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cL2LKzytOHLTFSgAlq6dcatonUfAx1IbS/M6FwfHn2FLFNRRHhCkJXl3V1UHe/WcB 6FxG4lCSssoFbGaxrWrLCxb5Ykq4NIOAEx/2wyDWpGNhCyJtxUP8zOIv+sNbbncUqn dRSYe8BdNj6voTXiVX2UpOkTt9A/VmkuKuYcrLDCEuIdcq+ojqIvKJeCN7R9EjSogc Mei5LIiGAM2C/8b+KivMMZTwy70coBtwA4yqwqtcQU6aZqXuoeGjiBWTg02BsjJ69g 1b5Kl98CA59OaQZu/b0gQrG2bLu6+g1hbaY43en5EBN1q3s8LNZvLXS7+beHFNUhJx 53W4D+jqUcIXg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1otPqJ-0002Tt-2r; Fri, 11 Nov 2022 09:56:55 +0100 From: Johan Hovold To: Vinod Koul Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 03/22] phy: qcom-qmp-combo: move pm ops Date: Fri, 11 Nov 2022 09:56:24 +0100 Message-Id: <20221111085643.9478-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221111085643.9478-1-johan+linaro@kernel.org> References: <20221111085643.9478-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749189614778867274?= X-GMAIL-MSGID: =?utf-8?q?1749189614778867274?= Move the PM ops structure next to the implementation to keep the driver callbacks grouped. Signed-off-by: Johan Hovold Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c index e7c8c4417142..2ac29b71d3b7 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c @@ -2216,6 +2216,11 @@ static int __maybe_unused qmp_combo_runtime_resume(struct device *dev) return 0; } +static const struct dev_pm_ops qmp_combo_pm_ops = { + SET_RUNTIME_PM_OPS(qmp_combo_runtime_suspend, + qmp_combo_runtime_resume, NULL) +}; + static int qmp_combo_vreg_init(struct device *dev, const struct qmp_phy_cfg *cfg) { struct qcom_qmp *qmp = dev_get_drvdata(dev); @@ -2646,11 +2651,6 @@ static int qmp_combo_create(struct device *dev, struct device_node *np, int id, return 0; } -static const struct dev_pm_ops qmp_combo_pm_ops = { - SET_RUNTIME_PM_OPS(qmp_combo_runtime_suspend, - qmp_combo_runtime_resume, NULL) -}; - static int qmp_combo_probe(struct platform_device *pdev) { struct qcom_qmp *qmp;