Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp566939lqg; Fri, 1 Mar 2024 13:50:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXriEY/3CioLKNtCmACbYYvKC95MgbsJM6Uy8RGnKFb0wmajoKJsnqxNtFhod3NCBn2kTSORcaI5ttXUoiCDag6H2nFPNjZLNUQCC2WKQ== X-Google-Smtp-Source: AGHT+IEX8KaV+c00NFmyQpPqZ2nY/ualz5TlY/MecMF2iczrVyYecxqFINpJoYCeHC92VELdnSqy X-Received: by 2002:a17:906:7194:b0:a44:ccfb:235e with SMTP id h20-20020a170906719400b00a44ccfb235emr206942ejk.6.1709329839257; Fri, 01 Mar 2024 13:50:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709329839; cv=pass; d=google.com; s=arc-20160816; b=w7fyCQEMg9Wtx5VTkrPhz+vene4wnTWJapjBKmrKXrVQPdmdTQ8pvmbibE7MibB5JT Dl76RcYmmCfKz9/+NR2DsP4Sfg88LFyLY3r8mg7DLOfX6BJnYU7ouBe6Uk8WBXOfemcm pQJFx5KMCuy89Zq3nb6XivMxC6hXVte2gnz3OTArT/+KW3a+EmbbAsHFyPKqiZvy3omt IYmXyqn0wh8SLzv1ONzymrzw26ddfIArlfN0uIWxZb8QmDp+ztUgErlkn7EbTm2lW7xF huyhV4+wFxf8QJzfsDc0x2LOXkDc1saRG2xmsnKiR1oQDyyNLlO57z1A6OZb+vjea9kF LN3Q== ARC-Message-Signature: i=2; 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=pW/DoDTYr1Yaa38qwVay3Vac6jgzmLaMHqCvoGC8Wrg=; fh=ig5K+e4mREHuZYj/or6VCpP7XCtB+uADTn0+lMdYM2A=; b=xaaSEiLO2NGnkeew0v2uKaIWGdjjuYShDzc+mMDB3vocExLaaN6wJ+7Q3h/edlfesS sM9MJrxFC9QjaUFY93Nx2MGYXkzR2eZ+aAiCx+VB45ULFLRpFOitQ+x/gWaXPMDiECFj i3rXpGQ917H+HcTsePmkpcmEt0t6hS+SnPpn5ros83DhNan1IZ3I0s+AK+Sr3jNTQstw H3QtP4s4Dok5rGkmWJZ366GMefBJ7q35fZx7vYvv4Z/E30sx/kDZlULNkL/pC7oFuQGa FuQu3AzE1tMcQI8G9yn3AVYtmeceyw4quZTpy6Dp0m1yFjWsbAcArqqK7i9wmp3/SwW9 TD3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 f19-20020a170906c09300b00a3f851fc3f3si1730217ejz.504.2024.03.01.13.50.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 13:50:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89164-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 DFF041F2491E for ; Fri, 1 Mar 2024 21:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E92758ACB; Fri, 1 Mar 2024 21:50:30 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CF8DC58AA6; Fri, 1 Mar 2024 21:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709329829; cv=none; b=ON7+vzN5I+O4AkavdwVm531tII6cxdJXz1Lv2iwqd1lYjVhzwxkKaOgbxeZ65d/x/UV91cPCBopj9v3JdPQi0f/B6qN7Qk/S5f3cdhCxSYc2Ylt0HFhs6+LzxlA9Kmh11WUaZUFGGJZTVaQtz8om/Qnm0LtyQ4Kx0yUwkXGjJSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709329829; c=relaxed/simple; bh=HDD0YdAntBqh6zTcDVRYRSlUPcXbImGl1KPnu2ZtboU=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=RBVTdoCzq7racLbUuN91pSNHtlujGCe/m2m2bwdVz34jlHikkpfZB89+IeeqtWANXcf1fTPt10do9B+TxkKdCOa5oj05lot4WHEw+7KaBjY+dij5h3xBJBE+OPXQR0Ea2qqstAaDeoZJ+C5UY6uSuuZQPRi/Z2QNtKpNfmwcWCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C008C433C7; Fri, 1 Mar 2024 21:50:29 +0000 (UTC) Received: by mercury (Postfix, from userid 1000) id 988FF10633B9; Fri, 1 Mar 2024 22:50:26 +0100 (CET) From: Sebastian Reichel To: Linus Walleij , Sebastian Reichel , "Ricardo B. Marliere" Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman In-Reply-To: <20240301-class_cleanup-power-v1-1-97e0b7bf9c94@marliere.net> References: <20240301-class_cleanup-power-v1-1-97e0b7bf9c94@marliere.net> Subject: Re: [PATCH] power: supply: core: make power_supply_class constant Message-Id: <170932982660.281458.3124950180863553573.b4-ty@collabora.com> Date: Fri, 01 Mar 2024 22:50:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 On Fri, 01 Mar 2024 14:46:15 -0300, Ricardo B. Marliere wrote: > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the power_supply_class structure to be declared at build > time placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > > [...] Applied, thanks! [1/1] power: supply: core: make power_supply_class constant commit: 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b Best regards, -- Sebastian Reichel