Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1385933pxf; Fri, 19 Mar 2021 06:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7mjlkP9o7m773Oj+p4EPIyPG/K0inFEN/qdNVXabJJbGVhVVOzjLWn5vZjAQOFoCPgDYv X-Received: by 2002:a17:907:9e6:: with SMTP id ce6mr4190134ejc.207.1616159740331; Fri, 19 Mar 2021 06:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616159740; cv=none; d=google.com; s=arc-20160816; b=joSb6+8LkGz4OK8ZRRTWZ5t2Ta+AGFKwKTn2HpSpaqqhxpGz2VmS3J0hkwnKTOBy/+ DpSYz/DxMLLqclu+Hd6LNNx28B5HRZmwh6Pj0nK3MunYkJSFD0LbmVgCOk4xt99n0C3F 4/QluSWq1QDbn7nxz6glN3biufBEvUwNunEXY59PI/gpGVG4n8ba77+xI06px/iTmGsr K90hrlbnZM3Bp6xa1ELwO/HBJljkHEHcFv5t/in8j0/hbn4uDvyfqF1cpAyr6uipAuZS EHEXSZq8wUMIw26c3ASfirm/lnNz8LzWMMKg6zmUlP29RUGLYBAOdtO4wQG54CQJLzI4 A4Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=/+fWO4Wa4J/MjEIX6MtHgXnTBL0daD6nOFXcsG5rZ5E=; b=NxfRygt4XKNSUmfYwlBTnECreMbb8VzljHjyq2OMXe4kABW5W8/0Kv20HFzJBQfq+2 Tsgyx53n+dxazseS3ssb9BOX1/ynOKvc8pkv9w1f6ZoHtB2ePzFuA0vg97eoeg9WUz0c HpIxdt/onCCjq8lb4jzC56larB8anlTo02KjZxhqfZNWwMGpQBjpuZVhJKS/H/cGKh1f dEIvf6vzM8SrETpCWMOZCbvnvRBifL/Vi73n9HVlRwnFjRhg103SOV2ktn1kEZMmsa30 G8tkhvuieEIQlllQqmLztuwgUQRITf//rbljJLgjQfbo2Tj5ctHZFe16xYzulbfcy57q dOkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=whYMkM1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c12si4044575edq.130.2021.03.19.06.15.17; Fri, 19 Mar 2021 06:15:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=whYMkM1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230047AbhCSNMz (ORCPT + 99 others); Fri, 19 Mar 2021 09:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbhCSNMa (ORCPT ); Fri, 19 Mar 2021 09:12:30 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68096C06174A for ; Fri, 19 Mar 2021 06:12:30 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id u190so2737254qkd.6 for ; Fri, 19 Mar 2021 06:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/+fWO4Wa4J/MjEIX6MtHgXnTBL0daD6nOFXcsG5rZ5E=; b=whYMkM1Kw9ejBOhhiybyihLYyAlHTjngNDpaBr7xS1VELCGaE2Jl7PhFnwpQx7/32j Qhci3G5jOocPAw64DgjWIDAbggdXKLRmnVTNgCurG/4Q/L0LxJNLaqgFeManGLdK19xP alXNxhut7Jul9JWQDDgmS4TLVXORlBf/oTW/XBGmk4FFZKAgfNrbqZzh78tR9pqKHdvd j6GWKlZMvAposB1Xprzk6+moVZd+2UlrqQMbRXZi3UkeR2o52hckETQSef+wCJ2CKO8J pJYd6DKzZv51CBXDjb027gAjQItmtNzGE+H18G6qizm747hxYHp9eMWXKNerJBVTblPl dNGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/+fWO4Wa4J/MjEIX6MtHgXnTBL0daD6nOFXcsG5rZ5E=; b=prXrmdaoSbe7Ssjbw3v9JvfQ4O2DDN70nJThBgbhZyRnoNOBFmj47EtmALbQAZ1yWG d6Gz1V9VM09g+wdNZFVadbQzFGxfBqVGTBd1whlj0KXUmndZZAaLjUDj+TytTOx4njWB MVnh+moNiCofWhgDLKIm93EH+Q/8qUq2fXVq5QlPXrjwR/jHo0kME0vYUVl9teJEsJ1J yiUzZWcggCV3uKME/60wAyvHojrQEUlQkgwbqERBTaFI/erF0Cvo+0L0mBktqNFVIHEE wt9d8+kQabd+pqUoleiQGxWQSuXmHduyqc9YoM5Ch+QaIGOAWLZFeP+Irmtxn+xCXRRw mCYg== X-Gm-Message-State: AOAM531xLUbXgRZ+Qk/EcbPELqX+EMLlWh1ogKuEdiGkgJ/vnrRBDq0T igS7EBi44idRIjBTcyTW4w2GVuE48iQsUw== X-Received: by 2002:a37:a2c8:: with SMTP id l191mr9362412qke.413.1616159549179; Fri, 19 Mar 2021 06:12:29 -0700 (PDT) Received: from [192.168.1.93] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id 84sm4639116qkg.8.2021.03.19.06.12.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Mar 2021 06:12:28 -0700 (PDT) From: Thara Gopinath Subject: Re: [PATCH v11 7/9] drivers: thermal: tsens: Drop unused define for msm8960 To: Ansuel Smith Cc: Amit Kucheria , Andy Gross , Bjorn Andersson , Zhang Rui , Daniel Lezcano , Rob Herring , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210319005228.1250-1-ansuelsmth@gmail.com> <20210319005228.1250-8-ansuelsmth@gmail.com> Message-ID: Date: Fri, 19 Mar 2021 09:12:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210319005228.1250-8-ansuelsmth@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/18/21 8:52 PM, Ansuel Smith wrote: > Drop unused define for msm8960 replaced by generic api and reg_field. > > Signed-off-by: Ansuel Smith Thanks for the clean up! Reviewed-by: Thara Gopinath Warm Regards Thara > --- > drivers/thermal/qcom/tsens-8960.c | 24 +----------------------- > 1 file changed, 1 insertion(+), 23 deletions(-) > > diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c > index 8c523b764862..31e44d17d484 100644 > --- a/drivers/thermal/qcom/tsens-8960.c > +++ b/drivers/thermal/qcom/tsens-8960.c > @@ -10,8 +10,6 @@ > #include > #include "tsens.h" > > -#define CAL_MDEGC 30000 > - > #define CONFIG_ADDR 0x3640 > #define CONFIG_ADDR_8660 0x3620 > /* CONFIG_ADDR bitmasks */ > @@ -21,39 +19,19 @@ > #define CONFIG_SHIFT_8660 28 > #define CONFIG_MASK_8660 (3 << CONFIG_SHIFT_8660) > > -#define STATUS_CNTL_ADDR_8064 0x3660 > #define CNTL_ADDR 0x3620 > /* CNTL_ADDR bitmasks */ > #define EN BIT(0) > #define SW_RST BIT(1) > -#define SENSOR0_EN BIT(3) > + > #define MEASURE_PERIOD BIT(18) > #define SLP_CLK_ENA BIT(26) > #define SLP_CLK_ENA_8660 BIT(24) > #define SENSOR0_SHIFT 3 > > -/* INT_STATUS_ADDR bitmasks */ > -#define MIN_STATUS_MASK BIT(0) > -#define LOWER_STATUS_CLR BIT(1) > -#define UPPER_STATUS_CLR BIT(2) > -#define MAX_STATUS_MASK BIT(3) > - > #define THRESHOLD_ADDR 0x3624 > -/* THRESHOLD_ADDR bitmasks */ > -#define THRESHOLD_MAX_LIMIT_SHIFT 24 > -#define THRESHOLD_MIN_LIMIT_SHIFT 16 > -#define THRESHOLD_UPPER_LIMIT_SHIFT 8 > -#define THRESHOLD_LOWER_LIMIT_SHIFT 0 > - > -/* Initial temperature threshold values */ > -#define LOWER_LIMIT_TH 0x50 > -#define UPPER_LIMIT_TH 0xdf > -#define MIN_LIMIT_TH 0x0 > -#define MAX_LIMIT_TH 0xff > > #define INT_STATUS_ADDR 0x363c > -#define TRDY_MASK BIT(7) > -#define TIMEOUT_US 100 > > #define S0_STATUS_OFF 0x3628 > #define S1_STATUS_OFF 0x362c > -- Warm Regards Thara