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 C134BC433EF for ; Tue, 26 Apr 2022 22:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355771AbiDZWTR (ORCPT ); Tue, 26 Apr 2022 18:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355700AbiDZWSx (ORCPT ); Tue, 26 Apr 2022 18:18:53 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F21B2AE28 for ; Tue, 26 Apr 2022 15:15:41 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id o12-20020a1c4d0c000000b00393fbe2973dso1421410wmh.2 for ; Tue, 26 Apr 2022 15:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linexp-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PKFq37+jBQUG7PdwWKpR4OxPd8aMc8UBMumPMt9R4Pk=; b=L2LdCALCPibioN3tG8c+IZzrOHR9G6AphfS81JFXtvhiUGV2wu6STMvbWKcz8TRvwC RS6HiyNPs0xjneXwyVjxrAqJzNQ74xUpONnanQr4injGFw64JRZaxOpIro4/gd7bKkpG k2TMYNFN0y+h+DHIPVcO1CKq807r+LRWNQsjXTlIlDnYntCWt0vw9PYpxbvFoBO/EDc5 g8B5ZN2v/neBEXChfNP0ZJTnvSG8NfRoJxN3JMV8GeTQwv2YoiRj9T8KAzc5EjlBW6HU OJTpDqxVcOctHcIWPGgUXWl85lSXxlv3R4ixDD21N/UiB9FaLqtjxETts+ZDVxuMekdK TkjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PKFq37+jBQUG7PdwWKpR4OxPd8aMc8UBMumPMt9R4Pk=; b=YFJVJRohjtZfj+GUqLPQ4H0H0sHGqs4nCjX7VPVRNKJo2btXWY0cHK1uMIyyTeG8+U bLJAlsREcDSYpeOWGtytsfXzhEE8DPcuAzSg9FerlWs8jLrh4zrj5El2clMKwPx7zeWX JwwvP6qCxJeMfRyBB8Qr7bHFo8QJIw45JibISAx3odrkmj4uM5Lq3IHRvSmEQKc57d0X H7paeTjCRS2RbHTXnHakT6ufO8qIBZEJwODbZOpB0IQKnxo0PyUTwqgt1LcAoAhO1itR EfpWy+vHsA4qG6pTzR4z1MbXU5rWh42bfM7y8gh6tKM58AAiG9gzeundWSw/EeW6dmh7 ztig== X-Gm-Message-State: AOAM531+OoDXRI9Il1wGlWnE8ksEzFLVLRsXWxnkJM2YGyI3ld/5lnSz grRktQdVczjO3uLGWU7sQ2j+iw== X-Google-Smtp-Source: ABdhPJw4utDAbFShQjiI0UToflMA3TlA+dZvbWlListpLtD9mJ0uWVFSw0e1AYcn5IG7o45tCJxZhQ== X-Received: by 2002:a1c:acc6:0:b0:38e:b184:7721 with SMTP id v189-20020a1cacc6000000b0038eb1847721mr23090492wme.94.1651011339865; Tue, 26 Apr 2022 15:15:39 -0700 (PDT) Received: from localhost.localdomain (static-176-182-171-101.ncc.abo.bbox.fr. [176.182.171.101]) by smtp.gmail.com with ESMTPSA id j19-20020adfb313000000b0020aed8ece65sm393314wrd.32.2022.04.26.15.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 15:15:39 -0700 (PDT) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: khilman@baylibre.com, abailon@baylibre.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/15] thermal/of: Remove the device node pointer for thermal_trip Date: Wed, 27 Apr 2022 00:15:14 +0200 Message-Id: <20220426221523.3056696-7-daniel.lezcano@linexp.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426221523.3056696-1-daniel.lezcano@linexp.org> References: <20220426221523.3056696-1-daniel.lezcano@linexp.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The device node pointer is no longer needed in the thermal trip structure, remove it. Cc: Alexandre Bailon Cc: Kevin Hilman Cc; Eduardo Valentin Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 2 -- drivers/thermal/thermal_of.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index a1e4e000f461..aca491086561 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -70,13 +70,11 @@ void __thermal_cdev_update(struct thermal_cooling_device *cdev); /** * struct thermal_trip - representation of a point in temperature domain - * @np: pointer to struct device_node that this trip point was created from * @temperature: temperature value in miliCelsius * @hysteresis: relative hysteresis in miliCelsius * @type: trip point type */ struct thermal_trip { - struct device_node *np; int temperature; int hysteresis; enum thermal_trip_type type; diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 84c37493e27f..25ec70c8b7ed 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -855,10 +855,6 @@ static int thermal_of_populate_trip(struct device_node *np, return ret; } - /* Required for cooling map matching */ - trip->np = np; - of_node_get(np); - return 0; } @@ -988,8 +984,6 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) kfree(tz->tbps); free_trips: - for (i = 0; i < tz->ntrips; i++) - of_node_put(tz->trips[i].np); kfree(tz->trips); of_node_put(gchild); free_tz: @@ -1014,8 +1008,6 @@ static __init void of_thermal_free_zone(struct __thermal_zone *tz) } kfree(tz->tbps); - for (i = 0; i < tz->ntrips; i++) - of_node_put(tz->trips[i].np); kfree(tz->trips); kfree(tz); } -- 2.25.1