mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 19:45:06 +08:00
Input: yealink - constify attribute_group structures
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by <linux/sysfs.h> 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 <arvind.yadav.cs@gmail.com> Signed-off-by: Henk Vergonet <henk.vergonet@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
b06ae14803
commit
aa3350718a
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user