Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: ambakmi - constify amba_id

amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
b54bf2fd f657b00d

+1 -1
+1 -1
drivers/input/serio/ambakmi.c
··· 187 187 188 188 static SIMPLE_DEV_PM_OPS(amba_kmi_dev_pm_ops, NULL, amba_kmi_resume); 189 189 190 - static struct amba_id amba_kmi_idtable[] = { 190 + static const struct amba_id amba_kmi_idtable[] = { 191 191 { 192 192 .id = 0x00041050, 193 193 .mask = 0x000fffff,