Re: [PATCH] Input: cypress-sf - Constify struct i2c_device_id

From: Dmitry Torokhov
Date: Mon Nov 18 2024 - 22:35:49 EST


On Fri, Nov 15, 2024 at 05:50:37PM +0100, Christophe JAILLET wrote:
> 'struct i2c_device_id' is not modified in this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
>
> On a x86_64, with allmodconfig:
> Before:
> ======
> text data bss dec hex filename
> 6438 618 0 7056 1b90 drivers/input/keyboard/cypress-sf.o
>
> After:
> =====
> text data bss dec hex filename
> 6502 554 0 7056 1b90 drivers/input/keyboard/cypress-sf.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Applied, thank you.

--
Dmitry