[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175719510782.45380.3925400276927678009.b4-ty@collabora.com>
Date: Sat, 06 Sep 2025 23:45:07 +0200
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Sebastian Reichel <sre@...nel.org>, linux-pm@...r.kernel.org,
Colin Ian King <colin.i.king@...il.com>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] power: supply: 88pm860x: make fsm_state array
static const, simplify usage
On Thu, 07 Aug 2025 13:13:49 +0100, Colin Ian King wrote:
> Don't populate the read-only array fsm_state on the stack at run time,
> instead make it static const, this reduces the object code size as
> the data is placed on the data segment and this removes the need to
> have code to set the array up on each call.
>
> Note that making the size of the strings to a more optimal 11 bytes long
> does not seem to reduce the overall size. Making the array an array of
> pointers to the strings increases the code size due to the dereferencing
> overhead.
>
> [...]
Applied, thanks!
[1/1] power: supply: 88pm860x: make fsm_state array static const, simplify usage
commit: cb03556acf83b235dfb2e9f86e14f5e5b8a5f1e7
Best regards,
--
Sebastian Reichel <sebastian.reichel@...labora.com>
Powered by blists - more mailing lists