From patchwork Wed Mar 8 21:48:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 13166483 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D5EDC678D5 for ; Wed, 8 Mar 2023 21:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JbLE+zvRepxOEn7QKIeNhfnf1ApVGJdVnJ8730o6HUY=; b=u/6/R2md2KOB2G l6bSzZSQdmUOg3JiuCQiS22xAp+Ap+YoWAASX5DnBU4uwnlEmDfOcZQJQ1D8A+nN1K8mtCthaXEGn ojgygec8kacnekaAsO2a9ptzcAGE2fKb/qKiwwv/idY6XpDwGfQyNXiU2KmbRwmt6z7Peyk+Ocymt lefEB0bivekJ0+EJQMFzolSVaan3tXI4CXoHbZXWE4naNLRogOCA6n/S/Rbh55am4aPupfBP3+1Wz Ms94z0h9r+/4I5rrBV138rswSZvgVyz+s+kpQjKBvuNOEQdQlZMf3TgicBPu5QrWCQBJ/j65NmEZH Z063Qsi1Nn4ebA2X7QGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pa1eY-006sYy-RV; Wed, 08 Mar 2023 21:48:54 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pa1eQ-006sWm-Si for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2023 21:48:48 +0000 Received: by mail-wr1-x434.google.com with SMTP id h11so30102wrm.5 for ; Wed, 08 Mar 2023 13:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678312126; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9b973OIjh2A0q4it2tRxdKfeAcI3pT5uZD5jTJWInpI=; b=cq/H5/ad7yCYKfKtBDkoMCDyjA6SJAqabbPEbcckw/Z2foFpFzd+ESkm5TZAYDAMHO Y0NRnvGmAWJtfjsTW8xUQqYsOI5Y3+UCfULiDAQpjEzNXhnZusDyW3n7etpiwskcIM+T YixbLgPJuVHiIAPDNaWKqY++xS3tXCxcVg69CMeNYWN6dlraMp7GrFWHMY5gbI4RZwkg atcFXJacNRcnA7eIIdpPYAfaP/QhnhWY7J4tXnp/jrMy50ELtfn4pTsRm4ujD4JyAnPq NMFGHSHFqJ8EdlfJqPoLeBnwRK2tUrISb3EUy+VT5xH58ScHxNFIRdD9Wsmu3bz8SGSh bGgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678312126; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9b973OIjh2A0q4it2tRxdKfeAcI3pT5uZD5jTJWInpI=; b=YN2d+zoS/+a3xPmGNog4JzBunGppVic/fGFWrKW8whHB44+UJQQHf/sNJ7uudDeWQT O/KrpqKELncq/h5fQVet1qdeLjOiLj1B8ggBMo4IcpZH4fAyEZaYTRNEnqmjoXewwEoc rN/Gw/OJa9hiM89Q88xEN70sjaWbTP916qvRBwy8cbggxqG9WRBb8mJkeB1hfhOspk6V HnNXvVllTCq1zxoW/IQCk7owoVLW/XhahPYsmP+Kg2tKLKW4EvJ6SFqMQlEETIFN6yal yuBvyYrJbiV5tArlPzZl536Czsq0k/5rf58nli25p+FGDqKQmYD/IH2FYvYzuYbspl73 rJIA== X-Gm-Message-State: AO0yUKUf4xh82Tn0oqSl4b+AR3MBRGS3wvEUARuSJyPPit/97Wdn1tnh dQ1BMcBV+q9DVcVV7sdGHbteZw== X-Google-Smtp-Source: AK7set9dNQIoqJwJ1YDp+pOXC2yzZe8SPtUpY47j+15NDVfKGPTAxNPVDJYhNaO50DjaF0ITnaNgKQ== X-Received: by 2002:a5d:62c3:0:b0:2c5:5237:3b21 with SMTP id o3-20020a5d62c3000000b002c552373b21mr13902966wrv.69.1678312118499; Wed, 08 Mar 2023 13:48:38 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:fbda:65f5:e873:7527]) by smtp.gmail.com with ESMTPSA id z6-20020adfd0c6000000b002c55efa9cbesm16065713wrh.39.2023.03.08.13.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 13:48:38 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Subject: [PATCH 1/2] thermal/drivers/imx: Remove get_trip_temp ops Date: Wed, 8 Mar 2023 22:48:21 +0100 Message-Id: <20230308214822.1317086-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230308_134846_953482_1FC31FBA X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The i.MX thermal sensor uses the generic trip points. The thermal framework can return the critical temperature directly. Remove the pointless get_trip_temp ops. Signed-off-by: Daniel Lezcano --- drivers/thermal/imx_thermal.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index c3136978adee..69ed482167f7 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -330,13 +330,6 @@ static int imx_change_mode(struct thermal_zone_device *tz, return 0; } -static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) -{ - *temp = trips[IMX_TRIP_CRITICAL].temperature; - - return 0; -} - static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip, int temp) { @@ -384,7 +377,6 @@ static struct thermal_zone_device_ops imx_tz_ops = { .unbind = imx_unbind, .get_temp = imx_get_temp, .change_mode = imx_change_mode, - .get_crit_temp = imx_get_crit_temp, .set_trip_temp = imx_set_trip_temp, };