Re: [PATCH 6/7] Input: cros_ec_keyb - do not allocate keyboard state separately

From: Tzung-Bi Shih

Date: Sun Feb 22 2026 - 05:49:15 EST


On Sat, Feb 21, 2026 at 04:37:14PM -0800, Dmitry Torokhov wrote:
> Now that we know the upper bound for the number of columnts, and know
> that it is pretty small, there is no point in allocating it separately.
> We are wasting more memory tracking the allocations.
>
> Embed valid_keys and old_kb_state directly into cros_ec_keyb structure.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Reviewed-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>