Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4641411rwb; Tue, 6 Sep 2022 10:15:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6I5Jzwy7R0exS1ODo4mE87xiEsSopeRetaPvnNwYVicOQuSk0uaHAFx4VP38fdwoAtNGIb X-Received: by 2002:a05:6402:748:b0:44e:b48f:f5ec with SMTP id p8-20020a056402074800b0044eb48ff5ecmr6051652edy.146.1662484557673; Tue, 06 Sep 2022 10:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662484557; cv=none; d=google.com; s=arc-20160816; b=b1P8Yjy+Tdk1tyed5Sqz5AxV4AXxwMgdv4yJ6rctlV2v+/zToL0HOFPbqnXyvbrp4a ofvEwERLejN1tBuBvLowrzvRyRcXHGMoZILQ9fzvXrW+SokZfhjeLR/oROVqmXOgrpST hds4b64F6KmmkHy/b2sRGQh9LA1RAW4F1gWCRvHLU7JX3wXjT9dY5QuFtUEtB/bcmTAG s5sS+O9S1UF786+fFJlMBUdhSF4wdQ66PGWc8KFjWVqnTAQow7BfyzyeCjvFiljqUQB0 NaEiz78yI2EN5aodPhiy9B3C7yl5sLw3Vt5bBca4ZyuAY2RGw4RdC7ScOf+/Eg9PBc44 aS7w== 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=yrSKT/mK25Sdvyd/EBfV8QkWomCB8mrTbqivU/4XDPu4njy3B3DtqryfD/MtN0kZ+O NZ9gMMFDNcXSciJw+pwGP0IBbFQw2+Yg892TZcMAQ5C8MKVsmnPsnGVNkNtJHHz3FkCe C1+Hdu5ibWHr/sd043tPLOtXKbkaIYwdidodWjv1gg/+cfE6pjxbMaIh1rZjHdCB+NhP FD+bTzydXy4I30WNxxIOxo2XX0smZcgZpO4tveaS5hN2rw2IEc6Afvj2vNIrdVB/vRcS HD52s1wu3oVu9j9yapQ1Nnrt6WnrCzxgxti1nrEEu2GpoA9dS16l+/E66MwA7EdeXaix TmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KBk40v1O; 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 h16-20020a1709066d9000b0073c0169863dsi9210255ejt.465.2022.09.06.10.15.30; Tue, 06 Sep 2022 10:15:57 -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=KBk40v1O; 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 S238639AbiIFRDS (ORCPT + 99 others); Tue, 6 Sep 2022 13:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237754AbiIFRBX (ORCPT ); Tue, 6 Sep 2022 13:01:23 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C228195AD7 for ; Tue, 6 Sep 2022 09:48:10 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id t14so9068315wrx.8 for ; Tue, 06 Sep 2022 09:48:10 -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=KBk40v1OT946i4B+d+vkBk8cyimrj8gg6lHkT8hIOqFVzup+L566ZgcfQ4sFes+FND 3IupKc/pLXicihX1oQtR0nl+/cJRxFhpQVlPsJIlNqL9EbCF2LTfTPUAJLevuKDFhnt5 b4squC4IrhDisgAUsnWtYXC4AA9S/wLw3+HSJhu3DOPeDfoCrm3uy8Et5S3hGQHDv+LZ I6pUcuypMDWt8n6CVtt4z64pRCqXkOUsax+8gRXWR3o4p0rdv7qPoTkrtQwN1BZXlO8G 9jfPt94QTNArPqcuhkhwb4fEMo6BHLFq3Ec7qNJdws74PO8KergoXU3cXkquudV2PePM cSbw== 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=wuTw5N1E5eCQL7FS0+Yas+sKzL4GSGjcGR+ZU+fEqGjb+expu0tlrAdAjdAIBfEmrQ nBdfLiibwvG/4gh6WP6Nm8DekBhBu9LWw7P23K2RqaWEaznXyFzmVwbvbGH8v+wfEaBa wM2GB5CwnhzDmZviOvsSY5M6llWxu4FIWKM1QT/MCzCqcGfUejBnCU+rqMLeGkQIr80L qCM31XUJ5mg5g/fCDlmaOaVQ/F6pQ0L+Sl5qfEfJuaW3sUcP0mC4bcVMbyRG7IyCXweR eVDS84JqX4+Ti906G8VgGCHVKqEo+3Yw7Fr8KpljBvoOEEL03o4zumCUe5iyyVZyRQd0 v7iQ== X-Gm-Message-State: ACgBeo3Jc1kW7WYd51zRIiafb2spRbhn1iDFnyTu0ooGGFryKj4xmGQd EIpvmK04PcqKrW1Mt96ExXWcBQ== X-Received: by 2002:a05:6000:1a87:b0:222:2c85:2f5b with SMTP id f7-20020a0560001a8700b002222c852f5bmr28683893wry.654.1662482890291; Tue, 06 Sep 2022 09:48:10 -0700 (PDT) Received: from localhost.localdomain (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id e27-20020adf9bdb000000b0021f0ff1bc6csm7426600wrc.41.2022.09.06.09.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 09:48:09 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Eduardo Valentin , Keerthy , Amit Kucheria , Zhang Rui , linux-omap@vger.kernel.org (open list:TI BANDGAP AND THERMAL DRIVER) Subject: [PATCH v3 26/30] thermal/drivers/ti: Remove unused macros ti_thermal_get_trip_value() / ti_thermal_trip_is_valid() Date: Tue, 6 Sep 2022 18:47:16 +0200 Message-Id: <20220906164720.330701-27-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220906164720.330701-1-daniel.lezcano@linaro.org> References: <20220906164720.330701-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,T_SCC_BODY_TEXT_LINE autolearn=ham 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