From patchwork Wed Mar 20 13:17:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 160672 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp282073jan; Wed, 20 Mar 2019 06:18:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLrAF+x8E21AuA1Yna66AofxvTr/ghxPdXM7q9Q76N4elynmjP6MDk80PHR/pEhq7lDZCt X-Received: by 2002:a63:ff18:: with SMTP id k24mr4250964pgi.140.1553087926539; Wed, 20 Mar 2019 06:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553087926; cv=none; d=google.com; s=arc-20160816; b=Sluxhp89F44i0rkODD9Cj2++Z5y2EKI19zaQGVch8IxshicPdXrHrFoKVgCdRBjeK7 BIosIak2vdMj7Gvs8cGtb6A4BhVcgifylQPiWHRSUU8aCEG3h/JejlBBn7LAwO7TwluT yPAkG4H5O/j9fq/zyFMK898YLMyXDIzHQURUGcwNzLqv2stbgPQBkFiF35jnO2kNNm6N LHQCsPmMrD1noPrATA9RFA34p+2agOMaX0mHvEFKQRhfGsd3O76GlDo5OY5LRTX+fqx2 XN44G5ukKHCOYPx0YfRK12lY9gYw8pa3ehsGEX1bFytxviDgrooPkBCOwyntcrq9dO0X arhw== 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=p+2vOyfRPXNiPVcybu0cj6kyC8a5WrNTjU67P+v2awX8ASRXkKIE5ds7PuiuEh91LW uEFTjirsvVDShbzByih80pAafkvwCO/5QC7sA9PfjPvmuWcqE/OfbjnOppA5UhK5XMTK MQpA0N4W2QEauqoLCRwLoXeT1lbi+sxb0577fmA18WoGY2CIS9SWRyHZkHRjpH1KG2rP 8NVvoan8x13IJet4riSiFoJY02oXkz0DEsDQ5IPnk/8ZjKOPeyE8WY/X40rLx94oQ+7v mvGeyaVTsIsHH51rkOSG3bgs2fjGncAWOHQA2Hg+4o0cue0M6ftvF6l1lHrZBmzfRhuZ gTsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=APhtF+fQ; 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 h10si1621637pgs.573.2019.03.20.06.18.46; Wed, 20 Mar 2019 06:18:46 -0700 (PDT) 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=APhtF+fQ; 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 S1728151AbfCTNSo (ORCPT + 15 others); 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 ); Wed, 20 Mar 2019 09:18:44 -0400 Received: by mail-pf1-f196.google.com with SMTP id c8so1912858pfd.10 for ; 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-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 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: [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: 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; }