From patchwork Thu Oct 12 15:36:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 733156 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44EEBCDB482 for ; Thu, 12 Oct 2023 15:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235757AbjJLPgU (ORCPT ); Thu, 12 Oct 2023 11:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379470AbjJLPgQ (ORCPT ); Thu, 12 Oct 2023 11:36:16 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB609DD for ; Thu, 12 Oct 2023 08:36:12 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507975d34e8so239440e87.1 for ; Thu, 12 Oct 2023 08:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697124971; x=1697729771; darn=vger.kernel.org; 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=3oU0lIYVg56CkTRqLzmL92GAs1KwRLVAtgYT5VSBI6s=; b=zRq+5vasQ7te5GzpHIWog653v1vjbaHiROFnHhYGfGaZiNeadx0Po6epWCoHuC48Ge P+KY9OYkM3kSlL/lytyuFfnCOOaXL24LNiXYYjuFNf7QCc8ZMPMFGXkZQyrIK22lupLY JAs2H5pG9jCpnf+b3As9MTDnYgSLHj4xf0yLEhmYTXzKp+ygaqFAPW2sdrdpvBaMoe+L IMjtMYo1FqFe2tqXk4RIjirIagekM5x+U3fKEKLf36gMbEWJs1Vi0hCCTYK6g9MRhv4u MpVRixUGBoZvIW+sttVhKvdQLl3lEVMgF193+cPIHZ7n2KH7eXBCaGVzQHw6VLjLHvwi 0sNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697124971; x=1697729771; 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=3oU0lIYVg56CkTRqLzmL92GAs1KwRLVAtgYT5VSBI6s=; b=T7eLenG2pPLov30GmutD+yKZ0K91TxhUqXd22xblGN7igYnbHH96ethgP19e8Qx5aw JyGvobNHqmIT9P/9Eq6Jg3acgaYwvlbGHQ87FyoxOLbqttO/woSBDuGSK9rIupG5+19v iOUXCCInDdgrBxRcIrMBA8Ac/3U7LnP99Danb46SvCnMu0ir85Egge1KSvkcIv7GPiiJ Ox6NkvQxa32BXVnW2WIcEPbwStywgQ/oNBDjyzcFFGTb6A/D5AKsKRlkEFRZ4YgHl8Sx N5m3kZSpm+MP63yhZjXujyQAUdnEMd5WiqO7DX1Z3leRbL7LEBwEMgBnURv1iASOpmGu 5pkw== X-Gm-Message-State: AOJu0YzjhP/VBorhAhs2qsjKdlGSp1x8QSQEjFaDH8nMV+VsGz330yNW pYzmFpSRgnL6pYlvVcclstoFSw== X-Google-Smtp-Source: AGHT+IEK0E4FwtYKJpxrmPxWlWktvc53EX6B16eXxTE+hpXej8tzWOLjrlYIDiwRft4e2AyEKZsP+w== X-Received: by 2002:ac2:44af:0:b0:505:7ac4:239 with SMTP id c15-20020ac244af000000b005057ac40239mr17911564lfm.1.1697124970871; Thu, 12 Oct 2023 08:36:10 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id v21-20020ac25935000000b00505723e56acsm2850999lfi.273.2023.10.12.08.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:36:10 -0700 (PDT) From: Ulf Hansson To: Ulf Hansson , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org Subject: [PATCH 4/5] pmdomain: qcom: rpmhpd: Drop the ->opp_to_performance_state() callback Date: Thu, 12 Oct 2023 17:36:07 +0200 Message-Id: <20231012153607.101465-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231012152108.101270-1-ulf.hansson@linaro.org> References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Since commit 7c41cdcd3bbe ("OPP: Simplify the over-designed pstate <-> level dance"), there is no longer any need for genpd providers to assign the ->opp_to_performance_state(), hence let's drop it. Cc: Bjorn Andersson Cc: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/pmdomain/qcom/rpmhpd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c index ec2582f7225c..a631fe1f9a06 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -743,12 +743,6 @@ static int rpmhpd_set_performance_state(struct generic_pm_domain *domain, return ret; } -static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd, - struct dev_pm_opp *opp) -{ - return dev_pm_opp_get_level(opp); -} - static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) { int i; @@ -838,7 +832,6 @@ static int rpmhpd_probe(struct platform_device *pdev) rpmhpds[i]->pd.power_off = rpmhpd_power_off; rpmhpds[i]->pd.power_on = rpmhpd_power_on; rpmhpds[i]->pd.set_performance_state = rpmhpd_set_performance_state; - rpmhpds[i]->pd.opp_to_performance_state = rpmhpd_get_performance_state; pm_genpd_init(&rpmhpds[i]->pd, NULL, true); data->domains[i] = &rpmhpds[i]->pd;