From patchwork Fri Jan 5 10:35:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 185348 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6137708dyb; Fri, 5 Jan 2024 02:37:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoGhvY/gx9ogKxUBYJt53FpG+yT1VjgpsNiTMDepzhlTc/9K71RrDO3N8JDx/m6pX1LZPZ X-Received: by 2002:a05:6a20:6627:b0:196:16fe:9646 with SMTP id n39-20020a056a20662700b0019616fe9646mr1350244pzh.118.1704451031303; Fri, 05 Jan 2024 02:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704451031; cv=none; d=google.com; s=arc-20160816; b=LChWBgXxqmgISuvzIi2+wdLb3KU91CJuYxiTcHqQ63BONUHiXQT7H33WDnE3pytEsx phVV7fvh5Pnm1MkD2W0SG1gWUoO/yKhYsR9DKcQxwC9CFcERIuVvNX952o/B1oxGSuLE vvylVXfltoE3inQxlffClrrToQzJFq7StyJWwFIfTVVeIXGMx0YukrM78G3UEiHWdE1z t3m9qI8OAIVtYFyCrzhK5XqAmrAEmoScQielv1qMqigzzwcQAjczr8nU1kmvKZesQgoo zbR9OilxHqafhl1CHdKUeM0Gd9KI4mO/sHIgftAjIkagtGV0W/6XY8ChRdmIlcQGIUWc oGsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=MgkvDd251Anuxsin8lOtI6fY5/rZr3zzcdi1k1L/6pI=; fh=DnMG0bxiWO/F+XVRDCjP0Bjw4u1lvyeS08VeM0fAhhM=; b=DR281GinihBismJ1KCwM98YIhjeKXCKgR8wzj24DlesphhlQivinMiYShv9XWyQmZP 6yMZFd9I5nAyvwX+73/fzvWXefWv4Ulmu1AH9XBuMvc3gKEscZQTh2g3FARXZoDtFuFy ixY8dmvPYO+kt4FRez4QTFu1D8PvG/29pJDuCI5fuMzfpK2Ky2KhRSnI3Xs3nFGZpOYt UI4y48zJyYwfxqjQOsWwPR1wIeTu9EBpE1kybLZAiDHpMSAXO/Lit+v/rv8g88LNubeS R7vd84cm8WzYfj59OXV9cOnGrLGA0L0quYnNCDD15TzvR0tgT9gvyvgHLLng50LhN5Ml YYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YXyxACKp; spf=pass (google.com: domain of linux-kernel+bounces-17762-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17762-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p8-20020a17090a680800b0028c1c339f5fsi607703pjj.35.2024.01.05.02.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 02:37:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17762-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YXyxACKp; spf=pass (google.com: domain of linux-kernel+bounces-17762-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17762-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F58D281F08 for ; Fri, 5 Jan 2024 10:37:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAA552D638; Fri, 5 Jan 2024 10:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YXyxACKp" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 046292D60C for ; Fri, 5 Jan 2024 10:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d3aa0321b5so10549185ad.2 for ; Fri, 05 Jan 2024 02:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704450919; x=1705055719; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MgkvDd251Anuxsin8lOtI6fY5/rZr3zzcdi1k1L/6pI=; b=YXyxACKpT76JW57FcUM7yWvRsktG56leOE/rfxSR9i2fPPCEQbDOfK69aPHv/A388P Po+q9AraRBvD20gWVJmDAggHEtmZbW6GPDbEuQ6tjEU7opPo69DiOnoikG/79HpitTji zNsYEbNjUv6vY14pKgp6xKAPRbozA2MwspZznKpCspfdobAQ5+08qaoBwN1sbCNd3Kmr X1y8sm7D67SUaIVqng9dz+9YhCoruZfwKbQVxL36yStkDbkmgdlc8LMI9N9YHZ+NbGK/ IcDoirC1CDpZ/dPv4vzHhdy6iT5d4lcDj6MpwQqdopsyezBDmDilgvLGt02Je+mN7qMp rq/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704450919; x=1705055719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MgkvDd251Anuxsin8lOtI6fY5/rZr3zzcdi1k1L/6pI=; b=ljZw4t43Ro0AfVYRVKtj+KXAXzdPIpWsFTeH2NuWQnTT0OKRdshJkkxX7IOTF1e3Zh qTWW3jTw1L3fF2B+YrsSKx/9SfH+4TvWLrFQ3gWSRhwdDR9tVpaE8gd7fHMVDt9IjV6J zmXWeHKASoMFVJs+yrOa1oogsz5P9ZDf/sYgbx311hxfDouw2POHA2qsXh2l4usiIDru lwi7ZhE9xOoITHAESaKtF9SYeNiA0f7/LYqz4rp3drn8efsyDjATP+fQG0zAMXK3m/01 DDhYWldcNSRkou6kkK7RbCY1HDlZgqHRp455I/RiJQOX1erX9Xvh/5CsfD2zt1xt4otH T9Iw== X-Gm-Message-State: AOJu0YwdMc21YeQ34JX4mJV1tt+PULbjtOUDyp54HncvHZi7pLgw+n3v TS9iBI8UYi2khlwZMtrrap2s1zOGlmrKAQ== X-Received: by 2002:a17:902:e747:b0:1d4:dec9:f0a6 with SMTP id p7-20020a170902e74700b001d4dec9f0a6mr2310239plf.30.1704450919337; Fri, 05 Jan 2024 02:35:19 -0800 (PST) Received: from localhost ([122.172.86.168]) by smtp.gmail.com with ESMTPSA id jf9-20020a170903268900b001d4910ff83dsm1084704plb.121.2024.01.05.02.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 02:35:18 -0800 (PST) From: Viresh Kumar To: Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH] OPP: Rename 'rate_clk_single' Date: Fri, 5 Jan 2024 16:05:13 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787246444433838801 X-GMAIL-MSGID: 1787246444433838801 The field's name isn't clear enough. Rename it. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 4 ++-- drivers/opp/opp.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 5e6cfcbd2e87..c4e0432ae42a 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -963,7 +963,7 @@ _opp_config_clk_single(struct device *dev, struct opp_table *opp_table, dev_err(dev, "%s: failed to set clock rate: %d\n", __func__, ret); } else { - opp_table->rate_clk_single = freq; + opp_table->current_rate_single_clk = freq; } return ret; @@ -1352,7 +1352,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) * value of the frequency. In such a case, do not abort but * configure the hardware to the desired frequency forcefully. */ - forced = opp_table->rate_clk_single != freq; + forced = opp_table->current_rate_single_clk != freq; } ret = _set_opp(dev, opp_table, opp, &freq, forced); diff --git a/drivers/opp/opp.h b/drivers/opp/opp.h index 558c9ac6a6fa..cff1fabd1ae3 100644 --- a/drivers/opp/opp.h +++ b/drivers/opp/opp.h @@ -170,7 +170,7 @@ enum opp_table_access { * @clock_latency_ns_max: Max clock latency in nanoseconds. * @parsed_static_opps: Count of devices for which OPPs are initialized from DT. * @shared_opp: OPP is shared between multiple devices. - * @rate_clk_single: Currently configured frequency for single clk. + * @current_rate_single_clk: Currently configured frequency for single clk. * @current_opp: Currently configured OPP for the table. * @suspend_opp: Pointer to OPP to be used during device suspend. * @required_opp_tables: List of device OPP tables that are required by OPPs in @@ -219,7 +219,7 @@ struct opp_table { unsigned int parsed_static_opps; enum opp_table_access shared_opp; - unsigned long rate_clk_single; + unsigned long current_rate_single_clk; struct dev_pm_opp *current_opp; struct dev_pm_opp *suspend_opp;