Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp193726imj; Thu, 7 Feb 2019 02:51:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IboNFvJviuMY8HDX4nLXmZrsKAl4RFV/BHkmQdACg9hFj4RdOL+MgBbdHKbYHHh9N/Qz/Jn X-Received: by 2002:a63:9751:: with SMTP id d17mr13494928pgo.392.1549536686987; Thu, 07 Feb 2019 02:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549536686; cv=none; d=google.com; s=arc-20160816; b=gdoIBY2OLfM4UMkj8Ob/RbOpzyIJf1KX6sRS0+Hb5tGDLG/iS5EGhHsKmVnGBF+6jw ZMU7AGKISnAYjAdmlWEEfov0wI8pz7FPUOiyZkUujOK57ZrfhenOq+sRWshkjB78arWG Ye/I4aqNDKAwYOk6lWClxfw9u2BMFlZJTMG1mIPhA7bZjy/rfyD3yMnCX9RF1thJBSi+ /NhdIMRzijxiZjQoPf0CEpFOGJ1eVB0bIBOtLkYai7i4WajYmPHkkjuDObr0qdZeUhCa cFkNHAvpiNOSDIBa2zHo0gzOgSU6P6A2rNxTz/zefCvqeE2QKZAP4U8Bi/O2kohtKNAm R+KA== 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=LbuJq+BZ0J7ikxqqQ2bhYAm6NvN5v09a3tCN8f81RMhdqrc91SpvWGvqSZCePBAh7+ HzDF2WGm+72qQMi7z++abfxpIgPdibM6k6gOw/mr6t+kIx4WBGuYkN2gfZzvLczuZax8 nCkrI0cxXRSppkQquz0O5/ZAkQPAhg/QXnpuKg1CSOV5CwWiwkh0zF/RI6UhRlKvld1z 6MEUMF1aJolac6/KKvzJP6Mso3RhLjexewNUpVFUaciFix08fLSwjEX3jUjojHtPqHnw 4MqBPw0YWmCtwrk+4esd95SXCPFDUHzU+JBnY0QHHWuhAVRLGc8JNI8MQb2HdFfEdO98 vbkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKWw2Vjh; 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 b60si7727597plc.95.2019.02.07.02.51.11; Thu, 07 Feb 2019 02:51:26 -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=jKWw2Vjh; 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 S1727173AbfBGKua (ORCPT + 99 others); Thu, 7 Feb 2019 05:50:30 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37030 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727144AbfBGKu2 (ORCPT ); Thu, 7 Feb 2019 05:50:28 -0500 Received: by mail-wr1-f65.google.com with SMTP id c8so4189007wrs.4 for ; Thu, 07 Feb 2019 02:50:27 -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=jKWw2VjhjLdA19Yvvv2lrEJUtBjp5TTwzdFjXyxaLdLSlJtAZv0YrIEEIxxV354Hiw 2lelZ67fbFEw3x0Mu2yQssfjxuGUGfx5U2iVDX+htrTkLDiw4THhxgCsfqHfNee1iPmT ing4KZT5zAhPomgoXB0C6sYWCLWQNw/p/3B0At5wyPdZ/X2NdOGBgGdIfxWC9S8/ZnE6 Uf2fyQ8OLOHS2S+zPigeQl1KzkOc9xy95LX0JFZ7nTS8hdJaPhasKuUPUvTnNS4uPK75 iMs5J+62OtKa5AwQoQvVQcsJFa+ojme5hTMVNNt4joGFel4YHOwTbDweByRbQjloWaB7 Tu5Q== 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=UBTJX9bitwYe0P+O96oVi7OQp6LC3CqJuDKTCa8B91tM9uii1G61gFvXZkTj9B/Pmt novDF++hlVcHwiZqaDs7WiIzWyle96mfqkBkmQ5Hd+cHgT2eJvPyNNhu5FhLveMCvquc 2GcIUuUe7E6sz1/GD1HMSEkpIDZFfu3Ov724PbuiHaahQva/N+UV+mt6cTR7AiLqEu+j KC7isdCXbu5jEHV/eGgZPa+diXH5XFlz9J5xI9uY5doBSbDtxmEro5rXgVrYL8ffhHBo M7X450NLO+SWBspnwaS9JhqRZb4AdPFV68iRIgmP5uosIlzp4jca1ayHFjWlQHT/DI2/ /bQQ== X-Gm-Message-State: AHQUAuZMhGMaGAcCNPlkQLx7noa08EdkOiVZLUbcAf/VdP3tB5Djqztc 2EsNAae+ZU+TY7zN+e4MlIV2WVO3gvw= X-Received: by 2002:a5d:4206:: with SMTP id n6mr11996893wrq.327.1549536626627; Thu, 07 Feb 2019 02:50:26 -0800 (PST) Received: from localhost ([49.248.196.115]) by smtp.gmail.com with ESMTPSA id o64sm22842872wmo.47.2019.02.07.02.50.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 02:50:26 -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 v1 05/24] drivers: thermal: tsens: Use consistent names for variables Date: Thu, 7 Feb 2019 16:19:23 +0530 Message-Id: <7abbbbcc0790936575c03caa72400a6293a7d6ed.1549525708.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(-) 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; } -- 2.17.1