[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbVUUTh+VA0Tjp6Y=L5nx-p6YKuJ5XjWYTm_Q_Kfmz9ig@mail.gmail.com>
Date: Fri, 1 Mar 2024 21:04:25 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: "Ricardo B. Marliere" <ricardo@...liere.net>
Cc: Sebastian Reichel <sre@...nel.org>, linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH] power: supply: core: make power_supply_class constant
On Fri, Mar 1, 2024 at 6:46 PM Ricardo B. Marliere <ricardo@...liere.net> 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.
>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@...liere.net>
Looks good!
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists