From patchwork Fri Nov 4 13:56:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 15548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp421585wru; Fri, 4 Nov 2022 07:03:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MU2JQAGs6TXcat5dpc9OrPbT0iXMpwK9Lsi59QK/eE5OcK1C2lFOWziI4KcFkwQIvQzXK X-Received: by 2002:a17:906:9414:b0:7ad:bde1:3ccf with SMTP id q20-20020a170906941400b007adbde13ccfmr30981452ejx.543.1667570635427; Fri, 04 Nov 2022 07:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667570635; cv=none; d=google.com; s=arc-20160816; b=tQPKY5eEGiqs9BJLvTqo/h8kULCBnuRhNy1aXUoEpdV9dt6RjZWiiFpNgCA2OB9oWJ NNcRsYMQPS5bnRIuT6aVDuCLqHsNzEdRec4K53IepaIe1jvVA2E093dEJsQFCpL/TG+n YjNYKhJ9Cn0irrIQA+Qx2/++RSHdMdByVIEF5rzgUsGt2G8v0dDCEcaAvFK3+MyIvvzA 5/CGqzl0q2+LZjhvY4FEFebK97MmnPma/Q+E9BK3IRGFGf1XFvw5k+YZgfEubfOrAPmA ayyrteRmtaFk4yPDVZvZFCmc6ys5/6hcVHcNY3X4FJb3wn94O8jsfVyO0obtx/83hFKx dlCQ== 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=aUmqfMirOXscpTm4z7KeYAbRwSxaLS1LCpAqzIugH4o=; b=AxrfAyqH8saW+FCzFdbfcszBz6WdqNDocf3sUZfLvqBrT1xmkjcIU9uJIynh2DyDym 7SffuLK1x1Uh1whdB9rHc9SoVSeq3dQN9jpFzfYu8eLzYHqroD2cFBW7mmzdRNACorsL aSaoybwHxoJY00pH1CnVIsAtKYGLNzL8djvFMVozW2E5aMfYPwVsS70rzTU1V2or3peQ hjArSXJZuA5Nmw7dSjpHBqn7q5pkPSSDXvs5aE3d3Jlvj5vWKLtvqyR6is0De3mqz+eJ 5ZTe1DlaCM/XsoGly+ZLQYThmEOa3jaeu4ha26/Gw/ou/IKLZe/AUi/f1biux6w/Zrsp BPcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="eFXFoY//"; 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=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm5-20020a170907948500b007ac2daa0b49si5609001ejc.367.2022.11.04.07.03.27; Fri, 04 Nov 2022 07:03:55 -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=@chromium.org header.s=google header.b="eFXFoY//"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231653AbiKDN5k (ORCPT + 99 others); Fri, 4 Nov 2022 09:57:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbiKDN5N (ORCPT ); Fri, 4 Nov 2022 09:57:13 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D21312F65B for ; Fri, 4 Nov 2022 06:57:06 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id h14so4565094pjv.4 for ; Fri, 04 Nov 2022 06:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aUmqfMirOXscpTm4z7KeYAbRwSxaLS1LCpAqzIugH4o=; b=eFXFoY//OFMqP6HSReO/W8MW+RQMgzamdcVyeG9A7zNIChv+0Da/f6kd5ZBVa+JgOF sqx8QNOHF8Iz3fjRKHGsiVn65gJms5N1Uh6g0EIJTCKtoxXEs6BITwDvAu1GMU0PHQN5 HtdwShla/MTLqVq2kK6sGwV8+WKJNedmFYYQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aUmqfMirOXscpTm4z7KeYAbRwSxaLS1LCpAqzIugH4o=; b=laak3IYjk0Et8ZvVgX0+WeTch4bFyyRK62csP8eFW2Xj4rOubZGulpO/kRJCLf1tZ6 fMuX1Jynb5JfeHqevBOgPF/BoPveoUvpudTWNbmCykN3bY0BS0RCz06+BZUPL4V1P4l7 Ai89P3C0Ugs+m/LKvqE7he2sqTHMxGEvARJwLzjCJijcfxiqApKrAOrLC5KG+VgHu1mv p+hyW+hNOqPlrfht9WTkAPu5NlK+cZGpQG54clK0t3/A/AbNK/+k5WWut6lUWEz5i4E2 B8w9e8YvAfe7pWOE1d4t+sNVK34CBrEl5kITLLUbF6GyFuB65u/4WWSguYjfyvhhikbo FgkQ== X-Gm-Message-State: ACrzQf2aABQLugW3WS/lF/lDuqP39f4kKIvckhFOHOq5tubJi+NXdBQ8 9OEmthMNTb5HOTQwW53bahUSRw== X-Received: by 2002:a17:903:41c3:b0:186:dfe6:f25 with SMTP id u3-20020a17090341c300b00186dfe60f25mr34810903ple.47.1667570226254; Fri, 04 Nov 2022 06:57:06 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:5e74:f068:4840:3631]) by smtp.gmail.com with ESMTPSA id m6-20020a62a206000000b0056bf29c9ba3sm2829367pff.146.2022.11.04.06.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 06:57:05 -0700 (PDT) From: Douglas Anderson To: Stephen Boyd , Bjorn Andersson Cc: Taniya Das , Dmitry Baryshkov , Judy Hsiao , Srinivasa Rao Mandadapu , Matthias Kaehlcke , Douglas Anderson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] clk: qcom: lpass-sc7180: Avoid an extra "struct dev_pm_ops" Date: Fri, 4 Nov 2022 06:56:30 -0700 Message-Id: <20221104064055.3.I90ba14a47683a484f26531a08f7b46ace7f0a8a9@changeid> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221104064055.1.I00a0e4564a25489e85328ec41636497775627564@changeid> References: <20221104064055.1.I00a0e4564a25489e85328ec41636497775627564@changeid> MIME-Version: 1.0 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1748574546951601415?= X-GMAIL-MSGID: =?utf-8?q?1748574546951601415?= The two devices managed by lpasscorecc-sc7180.c each had their own "struct dev_pm_ops". This is not needed. They are exactly the same and the structure is "static const" so it can't possible change. combine the two. This matches what's done for sc7280. This should be a noop other than saving a few bytes. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- drivers/clk/qcom/lpasscorecc-sc7180.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpasscorecc-sc7180.c index a5731994cbed..33ed91c67e1c 100644 --- a/drivers/clk/qcom/lpasscorecc-sc7180.c +++ b/drivers/clk/qcom/lpasscorecc-sc7180.c @@ -459,7 +459,7 @@ static const struct of_device_id lpass_core_cc_sc7180_match_table[] = { }; MODULE_DEVICE_TABLE(of, lpass_core_cc_sc7180_match_table); -static const struct dev_pm_ops lpass_core_cc_pm_ops = { +static const struct dev_pm_ops lpass_pm_ops = { SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) }; @@ -468,20 +468,16 @@ static struct platform_driver lpass_core_cc_sc7180_driver = { .driver = { .name = "lpass_core_cc-sc7180", .of_match_table = lpass_core_cc_sc7180_match_table, - .pm = &lpass_core_cc_pm_ops, + .pm = &lpass_pm_ops, }, }; -static const struct dev_pm_ops lpass_hm_pm_ops = { - SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) -}; - static struct platform_driver lpass_hm_sc7180_driver = { .probe = lpass_hm_core_probe, .driver = { .name = "lpass_hm-sc7180", .of_match_table = lpass_hm_sc7180_match_table, - .pm = &lpass_hm_pm_ops, + .pm = &lpass_pm_ops, }, };