From patchwork Fri Oct 21 11:09:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 6643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp635419wrr; Fri, 21 Oct 2022 04:12:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YGXqOUJHcXZkNrOsVnLU6lXT6hotzD9ftcWbCgMRkTbsVRDQt5UWYYBqEqlOH9ZqA9ySe X-Received: by 2002:a17:907:dac:b0:78e:17a0:d1cb with SMTP id go44-20020a1709070dac00b0078e17a0d1cbmr15150369ejc.618.1666350750147; Fri, 21 Oct 2022 04:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666350750; cv=none; d=google.com; s=arc-20160816; b=LABibKivcJ5+MUeh31la/SEE09R8waEIhwZUPf9YWu+uWj4KHTFtiTjbzkT7dZfWCD tK8wZiIVFkYynGSBTqsm4m8LJquSVbgg6IOr6X9XpMaPgNd5LUT0zb6QnA11NkWnzmN2 im75EsbraAQicWiCBtLIgsN75U/uxu2+70h+r2I8aO/kNERjEUgsh9B80RGQLUTCS576 ox9EyV2T/OYto80CuAVDDE7pWAJbOdHZd2D19G3Cn2A0C2weKbZ1XZrvDEJC+1faK0Jq z3yuHDDxhq+3WQMMtJdnGMdvlTv6WiiPgETVmgWyPbqSiRptp7hM1o89h8dhJ7cabqJ6 L2PQ== 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=jUDj/K+kdB930ahLNMxiHqxjoPAcH7nt8Na2FzwEeEo=; b=HCuBabBawzZ9r1X7qqTp3toJsB3H0+KzJTYY9r+Hh2h6wJqTdpU7JAU2No6t+mFIdw sHG4Olt+6t1KyUjY7Vu50nH5UwD3ZCqp8WVJjyVuDcr7pdiVDjhJz5MnD7/+URLALp7+ I9Su6YHEWeq33eEIe/iRCi576A6X4i5P55lQOWc8Wa+s6slaxCy1nOAeSW2mJ0XZvk8g IXbEP8n5PWXum4UKOVh/Os+1FroS6y2/Nv+GULqNVP444CMKOtQ7ewjbmME8t2RDp4I3 W3g2AEGaOcY8gBfK1kkGiNNCSJDzimQxZMP20OMVtLKF5oB1IZX9BBJETg2152ycex75 wgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CFSWMHP2; 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 l5-20020a170906794500b0078e1d213831si22790827ejo.122.2022.10.21.04.12.04; Fri, 21 Oct 2022 04:12:30 -0700 (PDT) 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=CFSWMHP2; 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 S230193AbiJULK7 (ORCPT + 99 others); Fri, 21 Oct 2022 07:10:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiJULKq (ORCPT ); Fri, 21 Oct 2022 07:10:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F342180AE0; Fri, 21 Oct 2022 04:10:45 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id B347A61E62; Fri, 21 Oct 2022 11:10:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 936BEC4314B; Fri, 21 Oct 2022 11:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666350643; bh=4E2fvLi9nlZHK7y/46TS4Ev1h53IKCCPR/zjWddiSwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CFSWMHP2wiZjMthW5O86HYCxAbrrJdt4f7cXfPxiJ7KAL/hcGyYHy66oRU2hCXt5s /7asmr4z4ao1TpBvko6+B9KmuA5wpzvjLixJb9rKB5OFvShBrUEevtbtUo21zQk2Wu uSdNhx9oxpRrDY6CXs/eOxbS414T98ycYgElwWSccsdgOid1NP9RWVODq/1Q5Ak03v c4CAMfmBvWwrUy/xnuGzDCtZ6HH5VZDpyIENByryyRl2uNbCqOZQM646wcYEFAstyY o7JojHwetOrw+Au4a7aUwU0vzEdnn9iHO4IAlamCfA0r46SlOh2UN6sFAsKMpdcQVL L3r73E8gYD4vQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1olpv4-0007Kh-Ra; Fri, 21 Oct 2022 13:10:30 +0200 From: Johan Hovold To: Vinod Koul Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 06/15] phy: qcom-qmp-pcie: rename PHY ops structure Date: Fri, 21 Oct 2022 13:09:38 +0200 Message-Id: <20221021110947.28103-7-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221021110947.28103-1-johan+linaro@kernel.org> References: <20221021110947.28103-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747295404034033487?= X-GMAIL-MSGID: =?utf-8?q?1747295404034033487?= Rename the PHY operation structure so that it has a "phy_ops" suffix and move it next to the implementation. Reviewed-by: Dmitry Baryshkov Signed-off-by: Johan Hovold --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index e30cbc94cbf6..bd946438e3c3 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -2037,6 +2037,13 @@ static int qmp_pcie_set_mode(struct phy *phy, enum phy_mode mode, int submode) return 0; } +static const struct phy_ops qmp_pcie_phy_ops = { + .power_on = qmp_pcie_enable, + .power_off = qmp_pcie_disable, + .set_mode = qmp_pcie_set_mode, + .owner = THIS_MODULE, +}; + static int qmp_pcie_vreg_init(struct qmp_pcie *qmp) { const struct qmp_phy_cfg *cfg = qmp->cfg; @@ -2160,13 +2167,6 @@ static int phy_pipe_clk_register(struct qmp_pcie *qmp, struct device_node *np) return devm_add_action_or_reset(qmp->dev, phy_clk_release_provider, np); } -static const struct phy_ops qmp_pcie_ops = { - .power_on = qmp_pcie_enable, - .power_off = qmp_pcie_disable, - .set_mode = qmp_pcie_set_mode, - .owner = THIS_MODULE, -}; - static int qmp_pcie_create(struct qmp_pcie *qmp, struct device_node *np) { const struct qmp_phy_cfg *cfg = qmp->cfg; @@ -2229,7 +2229,7 @@ static int qmp_pcie_create(struct qmp_pcie *qmp, struct device_node *np) "failed to get pipe clock\n"); } - generic_phy = devm_phy_create(dev, np, &qmp_pcie_ops); + generic_phy = devm_phy_create(dev, np, &qmp_pcie_phy_ops); if (IS_ERR(generic_phy)) { ret = PTR_ERR(generic_phy); dev_err(dev, "failed to create PHY: %d\n", ret);