Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp896065imk; Sun, 3 Jul 2022 11:32:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJjNeAax96CJqWUqf4UXqVLanjWYOmedzV60E57aLx9PtLMxD8YlcVVUb5VWEDmAP47r2C X-Received: by 2002:a05:6a00:2405:b0:528:5bbe:c324 with SMTP id z5-20020a056a00240500b005285bbec324mr5079012pfh.11.1656873145144; Sun, 03 Jul 2022 11:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656873145; cv=none; d=google.com; s=arc-20160816; b=l1tKFseWSSbKJD39IwyJn+Q0FYWagFTYRdb2p9HpjI7En6Kx5f2cxidXrZFY+aPuX8 Nzq1VOGS1Mq4ut7mqYvsgT+VJj6UlvQyEu33y4zwWHV/24vmrc9fiixRdNgDV6Ylqu4x YyMipn5SqBmL3aabasoAm5Nu44aOk0zTLyCffoyrFn2fSvuGVr6mN67FEMOaTh1kIkFM ayTv92ayHMHoNm0WaMAXJx9jkauFf0A5fv9EwZD7aDk3BjZqlvi+vgPPDW2UeYaDd+NT apRBD6n/ni2mPJGSNlVnglrMmUAfOV3jiKaXpTX6KxeVF+d7/lLZ26kWlDJGTkYMhE3S mPtg== 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=uMdWj+8IX41ropCzCvRKN6v1pic3BDCL4i5ocfz1lDQ=; b=Enuob+YNNQwTUb3CB1p0CBYPwJmLTMEdY97wVui7/qXhl6hnm1yytgk7RjbRbQRNfi tUhXLHxYmFk+RcUKzjzQ8EPdZrR/LNsrt0/DapKXLK4TRTiPnFGfiSYKAny/UuKkCsnQ fE+aKb4gffEe6P+V52p+HIqoViONt3d0C2ghYuc3deNWvP4rjDv7lrhijh4Z95IjCGQV HPxevpdQYvq3zG+bupVsY+L4Zc/CGgD13iHK1y1TCJLvZsSWnEmCof6PRGodhwFistTI 5eDqSSUAhOrALhWjL9SuMJqHXAavEczcufC5yXaQsY+HYOTw6Kro+bPOy8tRSPv+neNI bBog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linexp-org.20210112.gappssmtp.com header.s=20210112 header.b=auMA2wBP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a17090b069100b001ef7e9d9b41si3509097pjz.115.2022.07.03.11.32.12; Sun, 03 Jul 2022 11:32:25 -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=@linexp-org.20210112.gappssmtp.com header.s=20210112 header.b=auMA2wBP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbiGCSbi (ORCPT + 99 others); Sun, 3 Jul 2022 14:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232388AbiGCSbb (ORCPT ); Sun, 3 Jul 2022 14:31:31 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FD23886 for ; Sun, 3 Jul 2022 11:31:30 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id t17-20020a1c7711000000b003a0434b0af7so4478706wmi.0 for ; Sun, 03 Jul 2022 11:31:30 -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=uMdWj+8IX41ropCzCvRKN6v1pic3BDCL4i5ocfz1lDQ=; b=auMA2wBPakeBvAHe93TzS3VT6myP+ZZKn8tvCarChohy1lKOzaNh+dFaw9G9VOLluf Y/Q1UI8ooK8fWfkdC5D+jvMxmI1xcDYv24xQ4oiLRwXYnmJFpDXWvN/3ftfLagm5lhJV 1rfTNuNZNmNE9se7QFr/ivrwEz9+XrVRPDmrhfD7WSlU+oXM3JnA03MrNK9mbQqfStDT AtXAwh7BgXK2ypeWTSNp7KEBZV8DUlT1o8jtqbvplA7Wt8hk12P1AoYtza68hvcLWJ2j vB7DqGnAr2IaDfygH1QZw3SUV9UQ/HBvjFUtE4fiiPhi3tyvoXykYeBAffgSmqQjpWXY YxEw== 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=uMdWj+8IX41ropCzCvRKN6v1pic3BDCL4i5ocfz1lDQ=; b=vH7AJVj4AmY/gScAgD6CxNTGkFZFIn5BN7gl0x1MVlabgHTw5MLWz3eGmUZt+mbOzB XFiFwc4TL2Cd16/bPhjOm94MhFnkDuut73xkNgbuNMQjMt7jfSu7Ar6R6qpTcePejCMP Gr4ucFQY3PfC7T8JcUb5KiHSxTS4OdTdDKtJA2590Og0raI7wu20tmtWIMt0xQ0aiQ7z Ee7hIb8vGbYkPCc8RYPdUEdGUMtjZqp5zLgbvdkC78syL4zSlBixzJWeYMqa9FErkrL5 Sd8jVL4YtZX+Vh976WaVAlTbnJ1BaEFP3CW0b1ctchL0UXcSD2sx2qJID4XTjRwwPVtf f+dQ== X-Gm-Message-State: AJIora+7RBKIAEL9OZeZYZMO/C3Kbran8/d2OSq1fXBANBnXcI+vd7aJ 5hxlndNRUAkqk55DPzbpY+l8TOefjzPC7A== X-Received: by 2002:a05:600c:1c0d:b0:3a0:503a:9c9c with SMTP id j13-20020a05600c1c0d00b003a0503a9c9cmr27120260wms.2.1656873089358; Sun, 03 Jul 2022 11:31:29 -0700 (PDT) Received: from localhost.localdomain (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id x10-20020a5d54ca000000b0021b85664636sm27504258wrv.16.2022.07.03.11.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 11:31:29 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, Amit Kucheria , Zhang Rui Subject: [PATCH v3 03/12] thermal/of: Remove the device node pointer for thermal_trip Date: Sun, 3 Jul 2022 20:30:50 +0200 Message-Id: <20220703183059.4133659-4-daniel.lezcano@linexp.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703183059.4133659-1-daniel.lezcano@linexp.org> References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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 726e327b4205..ff10cdda056c 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 04c910ca8623..16eb18c24430 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -867,10 +867,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; } @@ -1000,8 +996,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: @@ -1026,8 +1020,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