Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp28573rwb; Mon, 26 Sep 2022 08:54:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oLDwiQDuZLjpsbE7rF+uJnf9Sqtlc0pK6LQWGOEsGVLOofrMp5sWAWJlv35SnbdDodmHT X-Received: by 2002:a17:90b:4c92:b0:202:fcca:60ae with SMTP id my18-20020a17090b4c9200b00202fcca60aemr38206647pjb.52.1664207678159; Mon, 26 Sep 2022 08:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207678; cv=none; d=google.com; s=arc-20160816; b=LXOgFJkJrg6VFpyQk5lPzURDc92l3b3AQGPY+idtjWLZBAAooBXhb6YcAdvg4R432T DpcLJ8snV5OBgS0O54JUwpfGLtPmconLTqN9gdZfjQFJccw8c6ozcothv3lRGx2l0R9x 8w+xiTsxOuTsbBLRdJVgfr7YTzJTsGCUr+61PMY0kYX9GCP+8JRmecu1cazdCMwPdfhW uzVcmH+FtRSpYwl76NV26XcZohCWsTJPqvRCZPE01/VArEKOYWz+JYSt7F8b0pSlbNsn MmNB9KkrB6vSqJ2c8NUvew3K4hJuIwT1Ha0uyQGmEvSWT1QSCqoojrSivRKzGN/4yRHx 3egA== 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=v9HOYNemLB65v2s3X2Chh/1DsPPvYHZYg0+K/15aDgQ=; b=mDctGC/z7je7ryevs477Ll2OUdfzOB+NjGQ/iuVkCHAZYozSCcLDYIyDzIVS3f0Qqt ClGBBP/Emh6wXC3QojVOoeemGxaKciLyVPQvydkzIAWGtNKN5oWsw/3b5GZOXw3OhhMA cSaImzthoqUm/AgKzDxRQH4m1Z+RCyP4hcA9QG18kXIyQpBOrj/LwS7Gxc1DkxvRwNHl y9uxTtQ0B9p85lx1EQ/hj+IhNoryJ3USJWjPN+EVqahWjgfahcWstVDKNQ+B6yIYobhq mDk+zQyy3Incge4pbnRaKs5mdYvAKpNuH7ckZyV6tiYGMnehw+0Q3HguMk8leY2WfQSi tZ9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FI1oyr+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu3-20020a17090b1b0300b002009da5d10asi14021311pjb.128.2022.09.26.08.54.26; Mon, 26 Sep 2022 08:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FI1oyr+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236228AbiIZPVf (ORCPT + 99 others); Mon, 26 Sep 2022 11:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236185AbiIZPUM (ORCPT ); Mon, 26 Sep 2022 11:20:12 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0819B832EC for ; Mon, 26 Sep 2022 07:06:58 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id iv17so4582420wmb.4 for ; Mon, 26 Sep 2022 07:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=v9HOYNemLB65v2s3X2Chh/1DsPPvYHZYg0+K/15aDgQ=; b=FI1oyr+D9871we4e977QPagSCksT3Vn7/qJpbsueClzMSG2AwheE5iFNGGcPEWufel iyxpUf5nJIy8r/zyl21f72M3v2gAF64QhIYWHhvjm+0x3c5pPNlz4p4iqlZLrNKOtQCv eMlW95TYtzCKYhMdSZxQRzJUi3i49nJcKHM0sBsH4F7YB9Sgs5sZvh6DnVZcqSyptluf ISVKXupseoR3M7XTZUop4rIAqmcDNr7H2v1CQ0Uu5upIJesE55OBbFhDAabfWAx8nN4C WC1xRxXcaG9H4Thc7/P73siRGhzcEqkTupW2EZtjR12EGPRaKooCX8l0oJRQhIut25Db LgrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=v9HOYNemLB65v2s3X2Chh/1DsPPvYHZYg0+K/15aDgQ=; b=E/5ozGOXCKoh72IWBJOVqZFDYQiiL1sS4u+R35uaHTN182b2E2of4nxF/XGs1s2wiw uZiwAQKUoQSyV2ngGoj1Q97qYIhhkZyD8XmrI5FTOTBcsKkVuit0lezoQKRSPhhu8FBM k+E5is2JLpfp1IWxwj3DslinWNfDctrinjI8rqko0TTgDSeiFwVtr+YRsuEKd5R1mIDj 9lNdf7NOVCTU5Xwt4+0MZuD5W5E8bqm18+GFfenRoy5/NL8aPmQ9k7d+hqBWvpNFBUdG zyO7lUYk60oHfdtVlpDat/xwTJvVk4aWLmxL/s0jJBCBiis4hTBSXFSw73a1coao8zGT Mnvg== X-Gm-Message-State: ACrzQf2Q0KnoLLBNwkSIiUmJFb642n3Wl6gih1QOXiEeCT6B4qUg8IDS Ht8dD9874ArAD1LjZpeH05xbvg== X-Received: by 2002:a05:600c:6025:b0:3b4:8c0c:f3c9 with SMTP id az37-20020a05600c602500b003b48c0cf3c9mr21934841wmb.206.1664201216379; Mon, 26 Sep 2022 07:06:56 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id v3-20020adfebc3000000b0022adf321d22sm14310731wrn.92.2022.09.26.07.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 07:06:55 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, Eduardo Valentin , Keerthy , Amit Kucheria , linux-omap@vger.kernel.org (open list:TI BANDGAP AND THERMAL DRIVER) Subject: [PATCH v5 26/30] thermal/drivers/ti: Remove unused macros ti_thermal_get_trip_value() / ti_thermal_trip_is_valid() Date: Mon, 26 Sep 2022 16:06:00 +0200 Message-Id: <20220926140604.4173723-27-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926140604.4173723-1-daniel.lezcano@linaro.org> References: <20220926140604.4173723-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The macros: ti_thermal_get_trip_value() ti_thermal_trip_is_valid() are unused. Remove them. Signed-off-by: Daniel Lezcano --- drivers/thermal/ti-soc-thermal/ti-thermal.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal.h b/drivers/thermal/ti-soc-thermal/ti-thermal.h index c388ecf31834..4fd2c20182d7 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal.h +++ b/drivers/thermal/ti-soc-thermal/ti-thermal.h @@ -38,21 +38,6 @@ /* Update rates */ #define FAST_TEMP_MONITORING_RATE 250 -/* helper macros */ -/** - * ti_thermal_get_trip_value - returns trip temperature based on index - * @i: trip index - */ -#define ti_thermal_get_trip_value(i) \ - (OMAP_TRIP_HOT + ((i) * OMAP_TRIP_STEP)) - -/** - * ti_thermal_is_valid_trip - check for trip index - * @i: trip index - */ -#define ti_thermal_is_valid_trip(trip) \ - ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER) - #ifdef CONFIG_TI_THERMAL int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain); int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id); -- 2.34.1