Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1624588pxf; Fri, 19 Mar 2021 11:19:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcOMqbxbDUZQhB7eCaztbuhgNaePGqid6aox+hgLcb3yjXfD6TWF6fJtdbKBTEVb9/rSbQ X-Received: by 2002:a17:907:2062:: with SMTP id qp2mr5835678ejb.397.1616177994745; Fri, 19 Mar 2021 11:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616177994; cv=none; d=google.com; s=arc-20160816; b=K8T9g2yFAaTY+Kdv8ljoh+jfp0MgGAdT5VQfafsn2pgyNT6zSMXHVUMHuRjbW3wxJl KeAhQr7hZ7Go4I5ZyYguPcakQXnxBlHIkU5GKmbI+0myBkQveRgXP4/dTMFow+NwPMgy HR6fKA/iYIj5NxNxE6b8ULcq8fzwZ1SR+3gXj/VcyHBd2gDNTwAliHZrF/Zf6fI5UpNS p563wmyrauagAcVLoxJ+Aqs0jGy6kaajgHSgCWGH9J+DicymSzqToOLcCbdfPXwucIeV h/xeaWZ15UXoh/tVjw0ZP2R+aFoOzAzuoPNaCgJcwpPi1CfnBMwSOSk+TyTZpqNvSu/H cUSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zVZTG5BKbgtatbYmDlY1gfcJORVxWa6hUqN8vetG3ok=; b=DmWr1NCxwqWUibXw1atXNeLGVlX/qahxnKAQ/QixWJG0j1Aphshu2vF29oIpSaqDZG RxpfnT87T6OGW8ucdY8InsSwZzD2rsbyncv9iACedENWdtvzuSv8ANexvnLjKFOmzu58 By+d4pgnlORRv9Uvz4EBPWDI2QVoXKhdHJnkk3VFp1WLKs/JjiXs5TDfLXfQY7EKjWQN 0Zql/U5pyXk7DVVe9ktfjwf5nLNYQj/0SEdJUHjij5tHCVkvtRPQ/hNolkKrdmCG+/Cg tGs+VU++7UWbt5fU0JJBKS65dNDeGeomAHZ1yMTN933JxkthA4jjVlNp3NlhVE0f6d+6 8/Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FEv8TzrY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si4756715edy.138.2021.03.19.11.19.32; Fri, 19 Mar 2021 11:19:54 -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=@gmail.com header.s=20161025 header.b=FEv8TzrY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbhCSSQJ (ORCPT + 99 others); Fri, 19 Mar 2021 14:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbhCSSPg (ORCPT ); Fri, 19 Mar 2021 14:15:36 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E603C06174A; Fri, 19 Mar 2021 11:15:36 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id z1so11867848edb.8; Fri, 19 Mar 2021 11:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zVZTG5BKbgtatbYmDlY1gfcJORVxWa6hUqN8vetG3ok=; b=FEv8TzrYYqXA+CTDLnOVL4/x5ehAqhhlC3ShZf55mxXLk3Z8yqgjQHnMiOgVIgcome LgG8V9hn61G6kPYv8ZzKwDO8PR1rIBZCoOGGJXTXKo0CrgodqavF5BggVJgqn8jeF3OS DEDXP5m7W4c7d+t273Sk32lGOtCZW/pFKlTKYbT8Kc9+KetShZ/JExjf+3iZlzihd9zb CRc2lKJj9n47iqd63zioqWjHaFacLWknFMKguZOrABTZ2gQQE8HMk3Zs2kM/fN1QFw1/ x2tIU+4qIa0vMrWOEJFzHleSY2aguAfDnijctI6Riqaeo7iG3vN9yhPRewGWQQ8DXUQJ bQRg== 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:mime-version:content-transfer-encoding; bh=zVZTG5BKbgtatbYmDlY1gfcJORVxWa6hUqN8vetG3ok=; b=SqNMW6aqUSdPw4mLptzeefsiISjtyakXulg8OfAANSsudOzciSEDbA0TGDshTFWY3O kwCEG+UXpy4L7czqT3De+Ej5I2iDhWxEl3pqcBImUqo7L4dIgYm6cIo+ZGWweFVl8VG8 73pOrv3SRotDuel91xEJPG03sD/Hh8z1FSIkBaAUoGwjWgllefgk0aJZiiD1Ifz9MVpH ZbGu+hOq9w8aGcggfsgGsYMvYpgbIgd9MY+9MkDSdF80QaC+RDbQtF4gS0GBgK88WoID JObP4M77Hl/1GUor8a8ZyoY/qr0C0478LN9mwqfZOTzmsDQj3QYlw/QZAh4rM4vJQLiv rCrQ== X-Gm-Message-State: AOAM531AQ7pfGwdBH+2LNw6PBOi2XzkqVh89m4yw5P57/2KKeTf01vYb 3dZ/BFjqJCQU2pTuBthHHNs= X-Received: by 2002:aa7:d4d6:: with SMTP id t22mr11344903edr.376.1616177734976; Fri, 19 Mar 2021 11:15:34 -0700 (PDT) Received: from Ansuel-xps.localdomain (host-79-34-220-97.business.telecomitalia.it. [79.34.220.97]) by smtp.googlemail.com with ESMTPSA id u13sm4170288ejn.59.2021.03.19.11.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 11:15:34 -0700 (PDT) From: Ansuel Smith To: Thara Gopinath Cc: Ansuel Smith , Andy Gross , Bjorn Andersson , Amit Kucheria , Zhang Rui , Daniel Lezcano , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v12 7/9] drivers: thermal: tsens: Drop unused define for msm8960 Date: Fri, 19 Mar 2021 19:15:10 +0100 Message-Id: <20210319181512.7757-8-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210319181512.7757-1-ansuelsmth@gmail.com> References: <20210319181512.7757-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop unused define for msm8960 replaced by generic api and reg_field. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath --- 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 b139075dd004..4037f3a432e1 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 -- 2.30.2