mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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 <colin.i.king@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/20221005154852.320056-1-colin.i.king@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
48a4dec82f
commit
d4a596eddb
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user