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: 10800825 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C9581390 for ; Thu, 7 Feb 2019 10:50:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CF732B967 for ; Thu, 7 Feb 2019 10:50:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 017ED2B9FA; Thu, 7 Feb 2019 10:50:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B28362B967 for ; Thu, 7 Feb 2019 10:50:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727151AbfBGKu3 (ORCPT ); Thu, 7 Feb 2019 05:50:29 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42031 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfBGKu2 (ORCPT ); Thu, 7 Feb 2019 05:50:28 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so10962410wrx.9 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=QjPEuHGUzTkLx9dNjOF81hXlV0MkVjC//y/U//3Bdf3L5gKJqMq1KYdzJnC3j6PRwb PyoQZqeaPtITHYrJfqNalfpB00rIqH7mXRD416J3eDVu0kwMVJ1gvgR3Yb+pmyL4PLHE QT9Uh2dnp/yH4Z428sc7Dvkje8/PohisHN5AJ81f3YlfWeEDZhtfbvAYQ/RPHKeK0vG6 kn0wrcQ7WCQ75KQAlgikRQWYkZADfa+3A0wqtJNnmxF84zh07VW6JT8osT5a3NhrMqPu DlSYrYUtRFmXNZITCAvrEPa8JIgZsLsCGymyjwJV0McbYjmif9OqTJRoAU7n2VRRdvKj 5UMw== X-Gm-Message-State: AHQUAuZ6vm+mgNXsbDExyNjaXhhlqPpMmuDPjEis19ttCWaIyup2v+P/ zIRMxwUrcTA3xrVV2NrLcjtJPA== X-Google-Smtp-Source: AHgI3IZtcRWJHqyPr8qbiJJVY4NIe5bDYyiAX0GZnQ6VgA7JxvTzCeNElbR8OwMBm+SLMAlaUPOTGg== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }