Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1185990rwb; Wed, 28 Sep 2022 14:37:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4sQpKOudi/2q+ie+7BJQzmRm6LbU6Zs3WfHU/SNoRnlSO5BMkGf1rqjjydWSklKiieguKf X-Received: by 2002:a17:902:e807:b0:179:fc64:7288 with SMTP id u7-20020a170902e80700b00179fc647288mr1555plg.137.1664401056863; Wed, 28 Sep 2022 14:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664401056; cv=none; d=google.com; s=arc-20160816; b=jiKmPdcu5gJ6u5b5qo42ai1RGKxNkjpzismDqoFGOM+L/qXo076eXGSyoQuAzHeYhT nRkHC1eRMjmxUz/hN5kdpbr5NyPRa4UkVBSeEi7g9SVB2Z8J0ydgxdVIE0lMvm5zcKWD NWUTfO77L4B6o/NHeIDsGlfV3uS4dQm408us4J3xp4i7VtwavOxEl2ozJjzwKPNpeYez fmEUxpSeBXo0rxZ4d7Kxa0pT7o3dy+h9VjNNrttuK2ynhJReYiXM6dUi6sWf29T2Kzn8 M6Bo9msWHxl3ZggyumZFHJuvkeBJKHg0cMXXa+g1w/FHl14QpZj240mco0DC6eujW9vG tKVg== 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=DG6TmPLrE679AiDy8RcLgkzXfpAMr7s1xvd7N8t531yjcsUn6iedSFRy8pTYA8hV2i OIPZ+17+MRvRX8ZOkq6EpC0ddjDCeYOSP+ml6q1tBrehqV/CubbgyBvXRQ/9pC7GetaH UY9pJrqu4+s+7gsRk5yqnsNlO89ay0ASdJgWMcsxFxs3fe1WxcgGYxwfgxH3uNBm2i69 xi2nOoP6ZIBoJDPfJtNmb4aYOBQfN2S3DJGbjw/MeY9eMFlRWljmzhH/vAg53jJoflwz n3i6z8cTjZzyrd+YcC1gJvh0ulSBN3ZklI1kcgU8kKp0MUo1ucc+CoS1t7NFlLAU4eSY C8eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BUFAUjUJ; 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 c18-20020a056a000ad200b0053e9c7939basi4665432pfl.188.2022.09.28.14.37.25; Wed, 28 Sep 2022 14:37:36 -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=BUFAUjUJ; 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 S231419AbiI1VHI (ORCPT + 99 others); Wed, 28 Sep 2022 17:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234641AbiI1VGL (ORCPT ); Wed, 28 Sep 2022 17:06:11 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D50E235A for ; Wed, 28 Sep 2022 14:02:32 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so1674915wmb.0 for ; Wed, 28 Sep 2022 14:02:32 -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=BUFAUjUJwKjdj3BdWvtUrp7i6aupg1QDMOuYMiG88xLog9Re9fT2zPdEN0KeQnspwA /8heYH+hjIJvcHgA9EyYiYRghT268lR3+LqCRnumfJbYJ8dXMvV93GFIoJqmA+bfYdON OMp2gMLt/adqa5KdxOq5BsYFFlKTyBUn1l5h3I1WOXl6F4agHlDPumig1div0qBNrNY2 dxomCK+LxqUMxG7O1eCDWSWGCw82zjytzUqAktnyXqGQ7vJADK/duaJWVkQH+StKGS2G cqZWLF41IyWt5uMKdU8tqC5tGP42ZPHT4BQTw1/T6gadGf1ojWiv86OG9dMDYB2D9CSp l5wg== 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=4L1w1ptw8Uj7bvMKkoePdEcXeMItkCJS7pOLqvRzxXx+jNaNu3uD05S4vG02ycXvhJ ruCOftfCDxcLue3zu7r9RcM4/vZoAreH7wEyZ5Tnl4jZqihpfG/Kh4v+XE4UNYn1VKZl ouDPiNqcHA7zq/iWkhdMie9zeKKv8uiSITDYi8cM7XI9ZpD0em64tAwILHWFJFupsc/z ym4WxBZszd7Tb+xi3IdMauRbQcxHI6cZiDkb07O08eG9cQCHff3JhTMzKdLvow1CXBqv 7FS8etcBqYGClfgs1kPX1H9/BRFPR8XWlqqYJ+2VT7pgyhAqyHHQ9zROLFbC0AspDag3 +SNg== X-Gm-Message-State: ACrzQf02t3sKdkJ8R9WLhdNvULP7ChpBYhCSb715oqc4/+9iOye3IqRn 5niuvnR6+V+zjIo7ASGsWy9A2Q== X-Received: by 2002:a05:600c:348c:b0:3b4:85b6:e7c5 with SMTP id a12-20020a05600c348c00b003b485b6e7c5mr8465933wmq.45.1664398951619; Wed, 28 Sep 2022 14:02:31 -0700 (PDT) Received: from mai.. ([2a05:6e02:1041:c10:48a2:39eb:9d1b:8b8d]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b003b4931eb435sm2874300wmq.26.2022.09.28.14.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 14:02:31 -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, Raju Rangoju , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Peter Kaestle , Hans de Goede , Mark Gross , Miquel Raynal , Amit Kucheria , Nicolas Saenz Julienne , Broadcom Kernel Team , Florian Fainelli , Ray Jui , Scott Branden , Support Opensource , Lukasz Luba , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Thara Gopinath , Andy Gross , Bjorn Andersson , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Thierry Reding , Jonathan Hunter , Eduardo Valentin , Keerthy , Kunihiko Hayashi , Masami Hiramatsu , Antoine Tenart , Srinivas Pandruvada , Dmitry Osipenko , netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v7 25/29] thermal/drivers/ti: Remove unused macros ti_thermal_get_trip_value() / ti_thermal_trip_is_valid() Date: Wed, 28 Sep 2022 23:00:55 +0200 Message-Id: <20220928210059.891387-26-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220928210059.891387-1-daniel.lezcano@linaro.org> References: <20220928210059.891387-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