From: Colin Ian King Date: Mon, 10 Oct 2022 18:00:10 +0000 (-0700) Subject: Input: dlink-dir685-touchkeys - make array bl_data static const X-Git-Tag: v6.2-rc1~116^2^2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4a596eddb90114f5f5f32a440057a175517b090;p=thirdparty%2Fkernel%2Flinux.git Input: dlink-dir685-touchkeys - make array bl_data static const Don't populate the read-only array bl_data on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King Reviewed-by: Linus Walleij Reviewed-by: Mattijs Korpershoek Link: https://lore.kernel.org/r/20221005154852.320056-1-colin.i.king@gmail.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/dlink-dir685-touchkeys.c b/drivers/input/keyboard/dlink-dir685-touchkeys.c index a69dcc3bd30c7..3b674001cd15d 100644 --- a/drivers/input/keyboard/dlink-dir685-touchkeys.c +++ b/drivers/input/keyboard/dlink-dir685-touchkeys.c @@ -62,9 +62,9 @@ static irqreturn_t dir685_tk_irq_thread(int irq, void *data) static int dir685_tk_probe(struct i2c_client *client, const struct i2c_device_id *id) { - struct dir685_touchkeys *tk; + static const u8 bl_data[] = { 0xa7, 0x40 }; struct device *dev = &client->dev; - u8 bl_data[] = { 0xa7, 0x40 }; + struct dir685_touchkeys *tk; int err; int i;