From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9C18C6FA82 for ; Tue, 27 Sep 2022 14:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232967AbiI0OfG (ORCPT ); Tue, 27 Sep 2022 10:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232698AbiI0OdT (ORCPT ); Tue, 27 Sep 2022 10:33:19 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B02D62A91 for ; Tue, 27 Sep 2022 07:33:17 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id n40-20020a05600c3ba800b003b49aefc35fso5548619wms.5 for ; Tue, 27 Sep 2022 07:33:17 -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=OHXbaNWdyZ0Wkkc1xL/nI14ReQ0AVnlGlwSXS+lV7dA=; b=z2GK5g1LQ8HFiYE2/XYnsjUU58bx/joUvHgDeel7/mKn2Q1H6V75OxVgAC40HNSxa7 0Hnxnz9oOO6AEAL8f6OnoCxsJ+3bXcpqCJQEsxpnVXmMZE+Cdh/s4D28rz1fLHll9qjT fS9LJsN786EZvAU7wXUxoExOVnXibA9KTS9eAFQ2IQQgCVICVwCMfOTaADolaYnzxc6L yCQT1Wf/N1w78dEHd3I+9cmvjp0BOpSOiEkw/zwz2c52DrpAQFI1030sR6RDm2ImfDzs vT8dbhKqMiOL0NYWrMVEkcEEoyf07oXB+4u7HM2TfYaIguac0hqIGyyIAYOjbrq2X7Ue vydg== 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=OHXbaNWdyZ0Wkkc1xL/nI14ReQ0AVnlGlwSXS+lV7dA=; b=WDYcct64f1abjq6MklmMOxnGHscQnIdBnreGkMYqkPATKiEYTshoCSb9zQN2PDPzdg DjcnZXGSMH/nfVUhAlplHX1udzaomn85nYgR9cTK/AHTuNNF+KBzAjk1+8hhyhBX8ecE YwRVVs4C2GI7NiFPHxY7gh6SZR/bNsr2TiT6Wav9b40AU79PfMldXTLt2NSRCo3NAKDb M9goqOa987egTLYPNCiZX3EKPAsz5HSCo7yfG6yGzoVQSJQUsj43RpzFLkgNtKD7/YYZ RkJooYNJWx9cw1YWdM2UR+ZRqkkIGA0kvPko481izE4xoZqGmBDZ4D9kqq6gnB88HmFi T9lw== X-Gm-Message-State: ACrzQf3LDopT5MmQGMST+Mu5cZfdNuXCjWyMU2T72Nb5tBWPmo/ITi41 XlqOCOLD9AZjN2rL0xMTGraxZQ== X-Google-Smtp-Source: AMsMyM7PO7EZOjQKv0UyErlLA419FXm/ARdePkedOYLl3ii9SbqSknBZLWPV0xxhF5Srw+6AM7y0iw== X-Received: by 2002:a05:600c:3cd:b0:3b4:8372:294c with SMTP id z13-20020a05600c03cd00b003b48372294cmr2980799wmd.191.1664289197304; Tue, 27 Sep 2022 07:33:17 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id l6-20020a05600c4f0600b003b4924493bfsm17518371wmq.9.2022.09.27.07.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 07:33:16 -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, Amit Kucheria Subject: [PATCH v6 19/29] thermal/of: Remove of_thermal_get_crit_temp() Date: Tue, 27 Sep 2022 16:32:29 +0200 Message-Id: <20220927143239.376737-20-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927143239.376737-1-daniel.lezcano@linaro.org> References: <20220927143239.376737-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The generic version of of_thermal_get_crit_temp() can be used. Let's remove this ops which is pointless. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_of.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 494e9c319541..bd872183e521 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -19,20 +19,6 @@ #include "thermal_core.h" -static int of_thermal_get_crit_temp(struct thermal_zone_device *tz, - int *temp) -{ - int i; - - for (i = 0; i < tz->num_trips; i++) - if (tz->trips[i].type == THERMAL_TRIP_CRITICAL) { - *temp = tz->trips[i].temperature; - return 0; - } - - return -EINVAL; -} - /*** functions parsing device tree nodes ***/ static int of_find_trip_id(struct device_node *np, struct device_node *trip) @@ -529,7 +515,6 @@ struct thermal_zone_device *thermal_of_zone_register(struct device_node *sensor, goto out_kfree_trips; } - of_ops->get_crit_temp = of_ops->get_crit_temp ? : of_thermal_get_crit_temp; of_ops->bind = thermal_of_bind; of_ops->unbind = thermal_of_unbind; -- 2.34.1