Message ID | 3b4b55040759d823ae146e938e01be2e3a72257e.1553086065.git.amit.kucheria@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-msm-owner@kernel.org> 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 9B5546C2 for <patchwork-linux-arm-msm@patchwork.kernel.org>; Wed, 20 Mar 2019 13:18:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8300527CAF for <patchwork-linux-arm-msm@patchwork.kernel.org>; Wed, 20 Mar 2019 13:18:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80AAF29BBB; Wed, 20 Mar 2019 13:18:46 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham 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 343B729BF3 for <patchwork-linux-arm-msm@patchwork.kernel.org>; Wed, 20 Mar 2019 13:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728151AbfCTNSo (ORCPT <rfc822;patchwork-linux-arm-msm@patchwork.kernel.org>); Wed, 20 Mar 2019 09:18:44 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43299 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727750AbfCTNSo (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Wed, 20 Mar 2019 09:18:44 -0400 Received: by mail-pf1-f196.google.com with SMTP id c8so1912858pfd.10 for <linux-arm-msm@vger.kernel.org>; Wed, 20 Mar 2019 06:18:43 -0700 (PDT) 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=APhtF+fQy9zajyek1wjxwkdSFjGJHyZgmJYPdiag42a9PW9HqSIWH+HWAYNujKgeUM cHuX+Ufg7sIBA5bZXKSYKAv4TXg0L9xW9s1DGSsJB/13IWxtdBgAOXRFy6E11L83fCb5 cH04ZgXjMTxwpM7R/3AkmImHMatVQDCJ6xF+FwIHVH+e1SYZv6jOap5KzpZLuU94r65Y MXACy3Q55Pt9v8OqehXNjFn1C0XfU1upr/3awR7fhu2x934dWqOxi1Fo90/a0ORNGayJ 2cmAn3cjIJgLXU7qps010YhSv/kHwukt2fECbHUJOBIfk4RyrzAGTuJqG3zhVFpnkbsU C5WQ== 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=pJMniZ6tteaLX0qOQ+W0RIvAmDi1oaafhf76aZP31vMh5dbLaa9T/oDc8rS3S7CEm8 05dli1iDwVYs8bkBXIauJ+HKDBOwA4hTOuUBlMZw+qRgBUAwsbdYlsE/23UzyaEyl1ra GaRvTKs3zIpUMZffTvyQNciFrlZ4+aH1M0IVq3M3/jYkAukp6GYLJeK5N1p+upOYZu3c gRP1LDS70ZggZxMa5DaPyMeXvW/qgdY2dINLY5+ofOiOU2a3cEygZt87I/0aRY9S0vG8 3A7CD00F0epOvWrg+H0x5pFM8CS3iX1BxQp/6lZxw7ADkKjRhXw9VCqvYL0ksb4jVCuM 1wJg== X-Gm-Message-State: APjAAAUrn0rSpfNpBnfeK5BGA3uwzUVdP8zPDIVs+/MnySwcXm0wuBi5 /XwmGwKKon2vORD4yffRzSXrCg== X-Google-Smtp-Source: APXvYqx+qIZRHlxT1gbx5cVq+OErFaoo/HtW5LL3CzXUQcNvPGo2aRrBbjxzuA43EfJsTs2W81WOkQ== X-Received: by 2002:a62:ed08:: with SMTP id u8mr7644659pfh.200.1553087923408; Wed, 20 Mar 2019 06:18:43 -0700 (PDT) Received: from localhost ([114.143.122.221]) by smtp.gmail.com with ESMTPSA id l84sm6734764pfb.113.2019.03.20.06.18.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 06:18:42 -0700 (PDT) From: Amit Kucheria <amit.kucheria@linaro.org> 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 <daniel.lezcano@linaro.org>, David Brown <david.brown@linaro.org>, Zhang Rui <rui.zhang@intel.com> Cc: linux-pm@vger.kernel.org Subject: [PATCHv3 05/23] drivers: thermal: tsens: Use consistent names for variables Date: Wed, 20 Mar 2019 18:47:45 +0530 Message-Id: <3b4b55040759d823ae146e938e01be2e3a72257e.1553086065.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1553086065.git.amit.kucheria@linaro.org> References: <cover.1553086065.git.amit.kucheria@linaro.org> In-Reply-To: <cover.1553086065.git.amit.kucheria@linaro.org> References: <cover.1553086065.git.amit.kucheria@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
thermal: tsens: Refactor to use regmap_field
|
expand
|
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; }
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 <amit.kucheria@linaro.org> --- drivers/thermal/qcom/tsens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)