From: Arvind Yadav Date: Fri, 23 Jun 2017 08:35:56 +0000 (+0530) Subject: platform/x86: toshiba_haps: constify haps_attr_group X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36a1f2c607fe3f196bd15a0f4cd3d727b2c9c399;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git platform/x86: toshiba_haps: constify haps_attr_group File size before: text data bss dec hex filename 1471 528 8 2007 7d7 drivers/platform/x86/toshiba_haps.o File size After adding 'const': text data bss dec hex filename 1519 464 8 1991 7c7 drivers/platform/x86/toshiba_haps.o Signed-off-by: Arvind Yadav Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/toshiba_haps.c b/drivers/platform/x86/toshiba_haps.c index b3dec521e2b6..fb2736602558 100644 --- a/drivers/platform/x86/toshiba_haps.c +++ b/drivers/platform/x86/toshiba_haps.c @@ -132,7 +132,7 @@ static struct attribute *haps_attributes[] = { NULL, }; -static struct attribute_group haps_attr_group = { +static const struct attribute_group haps_attr_group = { .attrs = haps_attributes, };