From patchwork Thu Feb 7 10:49:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 157693 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp488283jaa; Thu, 7 Feb 2019 02:50:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IbMzJHK3jZjjkDB5I0bJHIEA0kro2T2oCIoJMuX9OolH+J5pBvrFDzs9E0v4093XWO9xVjR X-Received: by 2002:a17:902:f01:: with SMTP id 1mr15387293ply.143.1549536630755; Thu, 07 Feb 2019 02:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549536630; cv=none; d=google.com; s=arc-20160816; b=RQNYC/yGLMb2Fr/n33FfsVD7kKHYL3NhlNgIQ9741L3BHOhKkfC4uggkpKTiYINlhp YJWeAhioqrxMicm/so5EcUofYgKLykhmHixcKU1zUA55nrlisCXyiTSsoLwkqjmHJddC 3DFMyTyXaO0/NdLsihEVO48E7FxB6WbhnAKsjXjy6c67WSaqf7KzirTtA9loUzh9JBtV 5v2mj+dNSvwJAnSSGipVKJxnTT97tdh6ile18kK+wLVek8plWyCdKTpmJI6xNu53cT8o M0jSWbJw9qFjCL/GaWa+Dwudf94+CWogh2PTzMTtymUSB63TidJlZZmNOKCyzttzdKDf yPZw== 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=Lh/xewdPybP9/patTEeUXXDuudnsOW77/GOR5YTefwnrIB6luRRDv+YPKBvyLo9vDA FuCwsPxOGYYayS+QFIryScJsDbr8WxuoSrYRBXIIDJBaXcM94DLGTmFAKTOmbtj1kAm2 61OtSwoP1B5tN6unUr9l2JqbMxRNg5teMDatdhBK4RuFl5oVAv48g2gIY/4rhZ0BCMis KzgGOC+9WdHNpvS+kVb2nVtLFqocC3vfbCFFa7bF3RaK4SlWd2AEDGhyLy7hLKlu7Ezy uqNRVh9s6Wfc3nzErkpCTGGKn89YZEFTAefadjdEm7MhmuZD2DYlQwOVP/yvpCBg+uAw CQkA== 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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 t6si8425079pgn.258.2019.02.07.02.50.30; Thu, 07 Feb 2019 02:50:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727150AbfBGKu3 (ORCPT + 15 others); Thu, 7 Feb 2019 05:50:29 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39593 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727147AbfBGKu2 (ORCPT ); Thu, 7 Feb 2019 05:50:28 -0500 Received: by mail-wr1-f67.google.com with SMTP id t27so10978170wra.6 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=Tqa1RE2wkRMxJJdrT5J2Hyqet0M2ERIVM1LLC8ZDaktrj2eYW7lNge2szyBcuPvr3E VbS/oMAV8bx+46PCii/Hb1g58N0rruoSPUjEo+e0zr84tolkOQwIV41GxZcxPTAMgqEL r9o56lZJyfYKDfpOAKzqio2qhyRaK9JGKCL+EN9F7TPE4vYDTaCv43kejCF0lg1UKCuT Tol4wGNLBTUVkCN7Co/Hwjw/nH9/kovo3Oi2+vL3qGSazAz9bKhfNOZZ5TAaHExblWiG fub2I4AMXxFTb+3tm/L4frFIVVy4jfxT6+2WdanfeNr5ae6xHbJaJstDTGhxuNsT1/uH SCxw== X-Gm-Message-State: AHQUAua1onu9VJr+b68sBQCE3lTatJ+J+ujHkMkVZ480329EdE9hfDaD Sm0V4fDKHWc6IQXVt/Vc81bTLw== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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; }