From: Arvind Yadav Date: Fri, 23 Jun 2017 09:10:51 +0000 (+0530) Subject: platform/x86: eeepc-laptop: constify platform_attribute_group X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=130bbe6328c9edec37f59e4582cec5e43512b8e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git platform/x86: eeepc-laptop: constify platform_attribute_group File size before: text data bss dec hex filename 9934 1136 2 11072 2b40 drivers/platform/x86/eeepc-laptop.o File size After adding 'const': text data bss dec hex filename 9998 1072 2 11072 2b40 drivers/platform/x86/eeepc-laptop.o Signed-off-by: Arvind Yadav Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 2426399e1e04..5a681962899c 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -445,7 +445,7 @@ static struct attribute *platform_attributes[] = { NULL }; -static struct attribute_group platform_attribute_group = { +static const struct attribute_group platform_attribute_group = { .attrs = platform_attributes };