From: Arvind Yadav Date: Tue, 11 Jul 2017 03:21:06 +0000 (-0700) Subject: Input: yealink - constify attribute_group structures X-Git-Tag: v4.14-rc1~4^2~1^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa3350718a2662a87742b923b80c5925ac9b5c43;p=platform%2Fkernel%2Flinux-rpi.git Input: yealink - constify attribute_group structures attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: text data bss dec hex filename 6039 944 0 6983 1b47 drivers/input/misc/yealink.o File size After adding 'const': text data bss dec hex filename 6103 880 0 6983 1b47 drivers/input/misc/yealink.o Signed-off-by: Arvind Yadav Signed-off-by: Henk Vergonet Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index 6e7ff95..a1e0ff5 100644 --- a/drivers/input/misc/yealink.c +++ b/drivers/input/misc/yealink.c @@ -798,7 +798,7 @@ static struct attribute *yld_attributes[] = { NULL }; -static struct attribute_group yld_attr_group = { +static const struct attribute_group yld_attr_group = { .attrs = yld_attributes };