Input: ambakmi - constify amba_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 18:37:05 +0000 (11:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 24 Aug 2017 23:07:24 +0000 (16:07 -0700)
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>
drivers/input/serio/ambakmi.c

index c6606cacb6a7ad0925d27a51138ad7a9c36ca5ac..ff3875cf3da1e615d792fb6e41274d314d5475ad 100644 (file)
@@ -187,7 +187,7 @@ static int __maybe_unused amba_kmi_resume(struct device *dev)
 
 static SIMPLE_DEV_PM_OPS(amba_kmi_dev_pm_ops, NULL, amba_kmi_resume);
 
-static struct amba_id amba_kmi_idtable[] = {
+static const struct amba_id amba_kmi_idtable[] = {
        {
                .id     = 0x00041050,
                .mask   = 0x000fffff,