Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp124422rdb; Thu, 21 Dec 2023 04:55:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IErALjqy0gFQctGhSg4efMuMjilG2UcWu3XjZCWPlxqgnDcnRgIraam2e2ITPaPSo4oY2xN X-Received: by 2002:a17:906:c143:b0:a1c:4c3e:99e2 with SMTP id dp3-20020a170906c14300b00a1c4c3e99e2mr897345ejc.22.1703163310542; Thu, 21 Dec 2023 04:55:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703163310; cv=none; d=google.com; s=arc-20160816; b=eYEseAgqcRBBTWOdX+Lt1EJM5fi4PTfnmd4YOGu5EPCVAGyB4021QvO7h7v+9G4NxP 0cO3L356c7rJ63jiD6sBR6oc7CwJujkg6F+1eYm2yA6Wk5E5+dM02dxraw57s5rRGsg7 AtBaSVXmC24Hey7UK9spHc2ekZnpdrHla80nFBPMfqN125l5YIG1vRyY2JJSmYqukVjT t0NKlOPMysrwuoCMMPqMkdsoQdMG705VrlZvYSLFeDPpt80kKUvhwdiKNlNRgPjRwNJG 4b09FqssWQp+lqq3aymvRfQV/EnCrtmtq3wKNKm8XIZtMxD5xO5eyeMLBx9yXdeEJfdL 4loA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=clPqkadFLI0XC2fMHrAkGqMH321bCdiQ+LbPyQ8oIAo=; fh=tj3vwvS1joPqVAqhm025RI9FzN3aC+9rlGGIIVsXGr8=; b=JRSYjtaEFqJD+D4f7+ljajkXIwtsZ46ZWysHBnO6taNzPuINUNnUswxdYRRSaWL3fs 7YhXTnu8Ir+RXtyRdqELr15tjCYaSX7jyTmIFLjY9ApNskAkI208Q9AV3iOS6d9iTbRP 5/WMMwiyPlnN38xLfXVK3YWoGz6Nmo/n2K6cybWvYmMin8RBLcfwvUlIlclgb57Ii6Uj 8It3Twne9jAXu0nvOS1qrUWqd8k64EGGvA28GHRyETw5A68Cuzydh2VkcPnjLnV1bDsb HAC/7hwd1tLp2W5XCVYgYc0AT+6w1w3oN0gSJpzc4Wr61a4BIpPhP0u+ZsNRAuefZDu3 6d1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NByCFnyz; spf=pass (google.com: domain of linux-kernel+bounces-8394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gh20-20020a1709073c1400b00a26ab916409si267422ejc.138.2023.12.21.04.55.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:55:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NByCFnyz; spf=pass (google.com: domain of linux-kernel+bounces-8394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3501F1F26617 for ; Thu, 21 Dec 2023 12:55:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 731C77CCF0; Thu, 21 Dec 2023 12:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="NByCFnyz" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 589687BF0F; Thu, 21 Dec 2023 12:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703162930; bh=6AYkxKl8UtbFduON+vHDTlSbEKDTiAXo+qEGqK3aoS0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NByCFnyzTo9m0wh9v1y13lUpMSf5CRF7uM6N7DGKk0U5Y/h4ryJ4gNAZw8J2ltJe8 w0Cr0vo6JEevDL+3XbhBlwbmJoRSa2kUBsoovq2Nt2dgBLaAjbiJKnewj9Xx418VjL EavcvSLQOmu9yGCYW1K7pyabhD1JJqFvkQSF7RQXEYONyjbQNBAppq38DTkwwZqIl9 NtWy0sGdQz1xBDxjzvdr721DQ52GnCeW/G97EQLIXb2nQ10Zoic1opx2wEPEf67ePC E9cBmOPLFrM9p4v4v2DHbPBWyvRGb7GWEFwjtxJ4MUORe2vtGfAjODakNezpCjuysC v3buCg4Ym2PNQ== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 402A5378201D; Thu, 21 Dec 2023 12:48:50 +0000 (UTC) From: AngeloGioacchino Del Regno To: daniel.lezcano@linaro.org Cc: rafael@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , kernel@collabora.com Subject: [RFC PATCH 24/26] fixup! power: supply: core: Migrate to thermal_zone_device_register() Date: Thu, 21 Dec 2023 13:48:23 +0100 Message-ID: <20231221124825.149141-25-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221124825.149141-1-angelogioacchino.delregno@collabora.com> References: <20231221124825.149141-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- drivers/power/supply/power_supply_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index d656a2e39157..b0211ab97f9c 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -1310,7 +1310,7 @@ static int psy_register_thermal(struct power_supply *psy) /* Register battery zone device psy reports temperature */ if (psy_has_property(psy->desc, POWER_SUPPLY_PROP_TEMP)) { - tzdp.name = psy->desc->name; + tzdp.type = psy->desc->name; psy->tzd = thermal_zone_device_register(&tzdp); if (IS_ERR(psy->tzd)) return PTR_ERR(psy->tzd); -- 2.43.0