Message ID | 20221024100632.20549-5-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp358168wru; Mon, 24 Oct 2022 03:08:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM770DA2zsDSrdTMocR5E5aPtcuaTsH0/+KN6Rw4+dQzQetbQIlYoMLT9QBSY1k1aBy9ezOm X-Received: by 2002:aa7:8d57:0:b0:562:b63c:c2ba with SMTP id s23-20020aa78d57000000b00562b63cc2bamr32914315pfe.29.1666606080531; Mon, 24 Oct 2022 03:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666606080; cv=none; d=google.com; s=arc-20160816; b=GYasiLveRLvap5UvGevGu7XxyeIARoVmYiAaXl8UIPU+yDodlYIHeOYOE6c8es6z95 TqZ6LHGv4MD1Z+Sj7zQrPBv65KddCLKJUQ3ixtefPAAXeKqslxTjtX84U7A+TOX32Ggn ZDbTagADxHhIZQUQi5bPnz7LwdbKvuvHkxRIOhmRO5ToEX/RGQ4kxMaz9TnATqPouKvG bd7gSqHhgJK5XZAP+oTSLhy6pdky1YuNpoc+wQr8gK+plc0coshmSViWpVgm0vpniQAZ VCZt+iHUR1Uz/cgC3AneCAuD2EhUyHwhOj7gL6+pMkBOeRj5ZbVs9dfJp2/9ZHFDVNUk ZCnw== 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=ZFUg5nvYe2yIj3A+eAorzde9hCbouwbFZjgndplb06k=; b=lxAozlWWtuZxhBErykP1qK2UhuIn8OQqeIzcV8DggtKbOvH7flbYuJZpvJo+feViXF dLTFU45x3bgM3iG8pWQH3uv5psonF6rV7M9+ar3cA8LYgjALJfAX8PDJwJeIIUtpd8KA U1B7ULgJKap4CKxNGRFwUiNGyBpg4GsSmC/Gb4o1i8oZwI2OS2pHYJVEj5F5nFWie5ci Ydx9aH9NHc5z0JU57ec7L3UwkHK6Bb1Wik2OCQcSzjTwiokcFb565em8y1ZzhmO0bCQE sFBTHI2vNRFf3Yinc+q5lUYaNlOce2UvUIPHFjI0QTeugBZDknU3lHaSrZCiLoMoYFqH 21JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U6nZdQJj; 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 cw15-20020a056a00450f00b00563ab8e5e43si32522896pfb.77.2022.10.24.03.07.47; Mon, 24 Oct 2022 03:08:00 -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=U6nZdQJj; 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 S230486AbiJXKHY (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 06:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbiJXKHJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 06:07:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5EED1FFAD; Mon, 24 Oct 2022 03:07:04 -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 7E65E611B4; Mon, 24 Oct 2022 10:07:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 617D1C4314E; 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=G5+tIT4Tgtl0OJ/ICDrVdGpu7q26bG2QKVMgBhfWtvE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U6nZdQJjjaXnR4yXoW2TRRKm5wK4CAC18GyBVOuW2JMxYaIWmbijmjGvKWk7FVoWK n55Vurm3rBhQXEXY+7F61qK8/b3lfhhUQDjj/Hgrc5+jZCYKZk34ydrbLRb5DzNgh4 58xLwloBBxywELUwW1hYJfoKpWNM0GpbR1Wbnoa+UQ83WUrCTiN4429ofrcrbH5bxg 6eZprvjpJORdL8Y/w4+63NTkA7T7PrZzugJ05upBt9HLplA7CeiNLKE7fvIkVDtmZX duEdPA+2R7LmbEqIu6/Iywty2h0gI4XmN/FTz/8zPHc6r71CUmczfSUT0AReP9JsAr JCdnRNQk+Fvfg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1omuM3-0005MC-0Q; Mon, 24 Oct 2022 12:06:47 +0200 From: Johan Hovold <johan+linaro@kernel.org> To: Vinod Koul <vkoul@kernel.org> Cc: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 04/13] phy: qcom-qmp-usb: move pm ops Date: Mon, 24 Oct 2022 12:06:23 +0200 Message-Id: <20221024100632.20549-5-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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747563137732918444?= X-GMAIL-MSGID: =?utf-8?q?1747563137732918444?= |
Series |
phy: qcom-qmp-usb: fix sc8280xp binding
|
|
Commit Message
Johan Hovold
Oct. 24, 2022, 10:06 a.m. UTC
Move the PM ops structure next to the implementation to keep the driver
callbacks grouped.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Comments
On 24/10/2022 13:06, Johan Hovold wrote: > Move the PM ops structure next to the implementation to keep the driver > callbacks grouped. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index 4591128743c7..f28883e0d21e 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -2280,6 +2280,11 @@ static int __maybe_unused qmp_usb_runtime_resume(struct device *dev) return 0; } +static const struct dev_pm_ops qmp_usb_pm_ops = { + SET_RUNTIME_PM_OPS(qmp_usb_runtime_suspend, + qmp_usb_runtime_resume, NULL) +}; + static int qmp_usb_vreg_init(struct device *dev, const struct qmp_phy_cfg *cfg) { struct qcom_qmp *qmp = dev_get_drvdata(dev); @@ -2501,11 +2506,6 @@ int qmp_usb_create(struct device *dev, struct device_node *np, int id, return 0; } -static const struct dev_pm_ops qmp_usb_pm_ops = { - SET_RUNTIME_PM_OPS(qmp_usb_runtime_suspend, - qmp_usb_runtime_resume, NULL) -}; - static int qmp_usb_probe(struct platform_device *pdev) { struct qcom_qmp *qmp;