From patchwork Mon Oct 24 10:06:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 8310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp358730wru; Mon, 24 Oct 2022 03:09:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5z1GS0PclLXIfcNPc5G1t31PyDm3/r0unQHOC2ValEFHWRpKgnWepjTiqEqNGk64ZYxCQY X-Received: by 2002:a17:90b:38d2:b0:20d:8f2a:c4ba with SMTP id nn18-20020a17090b38d200b0020d8f2ac4bamr37906516pjb.209.1666606178348; Mon, 24 Oct 2022 03:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666606178; cv=none; d=google.com; s=arc-20160816; b=ff8974IUaJ7qumIQ1kkdp/kdx84qkWSubtZqCCLl+WEPzUET9HgQz2JLTnNm7J4owB uT13hCHniyl3Osb3i7Th3edsLIAJLWfUHf1ORG2RozU9xw9Ub9lch0Ifs8fxCgqUjT81 AgkmPs55uy4nBhDXGLAetb8OiqF+vOMOPYcTvDvI3gOEARiZU+/QQxWx97ZVSB8C9Ofv GKto+B16JqYwxSkSIYv9HZd59cLlJ9mEE3pVN8bWdWYUNa8XQWp/0VjPG5YhbcE+3hps EO3rjADSv/EFsoH5ZRFoj4j0zexelC7iBWOLA97Y4YeEDMZafnkZcFvfAVxfvlKU1/RS M4jA== 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=r5Za0dLwXJA54sSYHj6c03JoddUDs70S66iGL7Z3DiI=; b=GAd4+OAfm+FugprLhxEJByOCMdjFJjvfPoYMiINXvY9fhDBT07XTdymjKNkKU/GNjx DBwI/DRlFp5vQbHymSxVHMd3JhHRTUue13U8yde8ZGXwaj6+duTqAcfRyjfPrzNi/0X+ ImyO7VodSat3F+V5lSvgLp5VCkFiI+8pEcmwRRtLfslvb6ep1ui1tmQvsr3lLYDGoxZn uGtrqvQsHzwftrY8AKeEc1EtBby0XOAikIKgaabmPTuse1rosUYG3kmJ62gF6u5gzAIm sjdEn6ZinUv04c2IPJPAeGPGVMJcgC8XCI9tn7NZkt2yPlaUtVSsrZtRGIh+rWcFHkmo gZ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TJAtkfLh; 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 s5-20020a170902ea0500b0018010c3d7e3si27864967plg.404.2022.10.24.03.09.25; Mon, 24 Oct 2022 03:09:38 -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=TJAtkfLh; 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 S231231AbiJXKIK (ORCPT + 99 others); Mon, 24 Oct 2022 06:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbiJXKHM (ORCPT ); Mon, 24 Oct 2022 06:07:12 -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 6EB954B98C; Mon, 24 Oct 2022 03:07:09 -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 93091611BB; Mon, 24 Oct 2022 10:07:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2DFCC4FEB5; Mon, 24 Oct 2022 10:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666606023; bh=Tm4gmSInyHHH6+chy2xagbTkIvb1pK5cY/1WuEhyaH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TJAtkfLhiUdBvonF1zrurKl0vzN8LUXwdtbm0iFYw40NkNAewds8gGTeQjaKLmErG /Z2tBxodiExjto/QPHO7reX4OGgQmdYGSYTgnGihDodxotmVp6u8UmTirSLtEt0vY9 4SKzlj/LcTEBJjw8KTAUwLH9G5H07KvKkG7ZNmK6tOo3zatrE5CHJhuZ3k+sBm4R3z YCEftXnoWRuxCmZEhd6Zlb3Dk6HmaUS8ZKZq2u/NL1druWk4tnKPvR2BiXZP1hM0pa 62GqgB1Q3CfyGtGUeBUnxEK+mdGOVB4fbwqaW0LZ2uj7lIABVRyt1xseSvFf7XZUNb eicQwEgrym4rw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1omuM3-0005MV-BS; Mon, 24 Oct 2022 12:06:47 +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 08/13] phy: qcom-qmp-usb: rename PHY ops structure Date: Mon, 24 Oct 2022 12:06:27 +0200 Message-Id: <20221024100632.20549-9-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024100632.20549-1-johan+linaro@kernel.org> References: <20221024100632.20549-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747563240304919252?= X-GMAIL-MSGID: =?utf-8?q?1747563240304919252?= Rename the PHY operation structure so that it has a "phy_ops" suffix and move it next to the implementation. Signed-off-by: Johan Hovold Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index 2e603831e45e..4a7b961d2965 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -2149,6 +2149,13 @@ static int qmp_usb_set_mode(struct phy *phy, enum phy_mode mode, int submode) return 0; } +static const struct phy_ops qmp_usb_phy_ops = { + .init = qmp_usb_enable, + .exit = qmp_usb_disable, + .set_mode = qmp_usb_set_mode, + .owner = THIS_MODULE, +}; + static void qmp_usb_enable_autonomous_mode(struct qmp_usb *qmp) { const struct qmp_phy_cfg *cfg = qmp->cfg; @@ -2366,13 +2373,6 @@ static int phy_pipe_clk_register(struct qmp_usb *qmp, struct device_node *np) return devm_add_action_or_reset(qmp->dev, phy_clk_release_provider, np); } -static const struct phy_ops qmp_usb_ops = { - .init = qmp_usb_enable, - .exit = qmp_usb_disable, - .set_mode = qmp_usb_set_mode, - .owner = THIS_MODULE, -}; - static void __iomem *qmp_usb_iomap(struct device *dev, struct device_node *np, int index, bool exclusive) { @@ -2451,7 +2451,7 @@ static int qmp_usb_create(struct qmp_usb *qmp, struct device_node *np) "failed to get pipe clock\n"); } - generic_phy = devm_phy_create(dev, np, &qmp_usb_ops); + generic_phy = devm_phy_create(dev, np, &qmp_usb_phy_ops); if (IS_ERR(generic_phy)) { ret = PTR_ERR(generic_phy); dev_err(dev, "failed to create PHY: %d\n", ret);