OSDN Git Service

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 c6606ca..ff3875c 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,