From patchwork Thu Feb 28 12:20:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 159349 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp571900jad; Thu, 28 Feb 2019 04:22:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzjtUx0rSR6MZO2fuRAH5ed+ebhbtnjrTN2QKiRwyRtrxzcHwBKWZEdMj2146qUA/fLnCwZ X-Received: by 2002:a17:902:3c5:: with SMTP id d63mr2725252pld.24.1551356527650; Thu, 28 Feb 2019 04:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356527; cv=none; d=google.com; s=arc-20160816; b=jJ2PR9z37s1P6aWJPCBblZm+pUnpXQg79n/94LMd0LJcd+QDn5WLwtbd0NY4BCCH2a u5/H4sBr4Nl8aOdr0ckW+nFhuTOsBnCzeU1vx2wZpgCIL8w2InnFqGx08imY5Kx+g4Rl e6zYnX/hz0/etrcowSwwPn6IqiSQl0Ms9+5V+9OvZlhrW9cDmgFBem3mzWpxe/BcD46m DuQZqiRYEu7fsSAu3sTHo7ZrQK2vHmJJyN0I1IlaQ79m+qBtttsS9JidQjOM7H62cI2W jGm/Lvl+FoLLWPITFLp9cl7Qr9upBt/a6YBYrHt8pmP7bo+5ZApZi6iMJObbCxyEJIdm ksrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=081b2WykrwcmfZxREyFy0rYtvIRmQI0giDh8mi53WU0=; b=DU72B90Fbe4vpxoQFbxRdb9i9irO9niB1sIjdSiM78v/4CapBdQunGmNJZp6RPU4iV M61+eBH3cNwK/5qmrxDgSY0jNkBNtdcbtWOG1XZTnpItMjMf+VZq5z/n8r+TAqjoIOv1 GTFlJ70zmeDliDdCVbTSuJufDEPAi3FOGqfFLq7+mPcmT3oM7lONMk7GQHEpuz9adnhU p83ESYy2vCns+eP3W1IHFrqF0OzZrhwJ7n3MspFa5VTzoUOfgs1XsCxW5AlEyCPKZnsk /+8SP4p4AiMrMijOswupb7+ZgHXCsJACe4cVZHqNytwRBQhmdYGQQ3t0cyeYuvwTmZ5y P+rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SSUDI98J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si7635147pgp.169.2019.02.28.04.22.07; Thu, 28 Feb 2019 04:22:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SSUDI98J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731382AbfB1MWF (ORCPT + 31 others); Thu, 28 Feb 2019 07:22:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37338 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731712AbfB1MWE (ORCPT ); Thu, 28 Feb 2019 07:22:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id w6so18472926wrs.4 for ; Thu, 28 Feb 2019 04:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=081b2WykrwcmfZxREyFy0rYtvIRmQI0giDh8mi53WU0=; b=SSUDI98JhBuJYOIQIJckoJiPkFY7IhNnVjf1LzteHJ9oPhs6Lqq6LfibMtXA73rofJ +VVQRZaiAHj0wVf4PWj/xTEvySE1HtT4+lasDMFaDemUjga8AmerGYfyjty2PZX2RRdF uQ8Yx8Q5FZyI6DJUtTsnbhlA4NjJ9zXmlGykZKE3TI5tO5cse3RKq2+OGZORrT2SwUvO oAcN0FQB7GseaQ3ZPvyNrJfmiUEx4gE3GvhhmrMXiu2pD303ft0jNNJATnrM0jOIXf0G nd068Bqo1CVon+QTxhqJNbs6Kg3/m88w0fTNC3E8TcAW/gEK/i54n1RY95i6fczxn5sb mMwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=081b2WykrwcmfZxREyFy0rYtvIRmQI0giDh8mi53WU0=; b=l+y0qbjRnFHduhYTV9iupGagOSV/Ex6upu97p7rn7NRDYPqgfrYgaSkkWdBrLWNhKm 5bHUuOvr8xGbaKf2f3V+Z0E+xj4ciUtpS0K31mv8Ihhqljzvt7rIdRNcV/JFEHS9TV4Q /8fhyhztX46nsqB/NRXCCNJpRyYI6okMtF61qERWO075shiWFII0GK8p5cEs3n5BA09d FW9cHAK3PYUcstWZjo1Qs0zADhlnvsSIND0fN11I40jOC0LLUT/0pVGtlkYlmBjCa60q tOo6giMpZkjzoJEe4jo8y1dgtq6toaJyx/aVITfQbDyx5FdGcVNR3Wae2mFuUXKpvfMW J3IA== X-Gm-Message-State: APjAAAUHO8GqdZsKQWG+U1lBeUeBEyZUDYHK7W2G/9p6ZVqD1QDZmc4d 0uluknw+gSbtyE5CoYFuXsh6nSENU1s= X-Received: by 2002:a5d:6209:: with SMTP id y9mr6592393wru.140.1551356521970; Thu, 28 Feb 2019 04:22:01 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id m26sm3601885wmg.13.2019.02.28.04.22.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:22:01 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v2 05/24] drivers: thermal: tsens: Use consistent names for variables Date: Thu, 28 Feb 2019 17:50:55 +0530 Message-Id: <22c775079adc2dae926cd71e6d6ebd429510eeba.1551355503.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tsens_get_temp() uses the name 'data' for the void pointer, use the same in tsens_get_trend() for consistency. Remove a stray space while we're at it. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 4582d2b30e94..0b5be08d515f 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -20,13 +20,13 @@ static int tsens_get_temp(void *data, int *temp) return priv->ops->get_temp(priv, s->id, temp); } -static int tsens_get_trend(void *p, int trip, enum thermal_trend *trend) +static int tsens_get_trend(void *data, int trip, enum thermal_trend *trend) { - const struct tsens_sensor *s = p; + const struct tsens_sensor *s = data; struct tsens_priv *priv = s->priv; if (priv->ops->get_trend) - return priv->ops->get_trend(priv, s->id, trend); + return priv->ops->get_trend(priv, s->id, trend); return -ENOTSUPP; }