diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-10 20:21:06 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-07-12 14:18:30 -0700 |
commit | aa3350718a2662a87742b923b80c5925ac9b5c43 (patch) | |
tree | 5912f3505eb4727c2c6f25d06c2e20754046c8f5 /drivers/input/misc | |
parent | b06ae14803a264a61fa4c9fbb6a2304c78851bac (diff) | |
download | blackbird-obmc-linux-aa3350718a2662a87742b923b80c5925ac9b5c43.tar.gz blackbird-obmc-linux-aa3350718a2662a87742b923b80c5925ac9b5c43.zip |
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>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/yealink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index 6e7ff9561d92..a1e0ff59d2f2 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 }; |