Re: [PATCH][next] power: supply: 88pm860x: make fsm_state array static const, simplify usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux