summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel_telemetry_debugfs.c
diff options
context:
space:
mode:
authorArvind Yadav2017-06-30 07:09:47 +0200
committerDarren Hart (VMware)2017-07-01 05:26:54 +0200
commitd791db9a57ab7f390916dce0fa1315130bb6664c (patch)
tree82e2c917b721f6ae9cf095ca73d704a62baf664a /drivers/platform/x86/intel_telemetry_debugfs.c
parentplatform/x86: fujitsu-laptop: rework debugging (diff)
downloadkernel-qcow2-linux-d791db9a57ab7f390916dce0fa1315130bb6664c.tar.gz
kernel-qcow2-linux-d791db9a57ab7f390916dce0fa1315130bb6664c.tar.xz
kernel-qcow2-linux-d791db9a57ab7f390916dce0fa1315130bb6664c.zip
platform/x86: sony-laptop: constify attribute_group and input index array
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. The content of sony_laptop_input_index does not change and is declared as a static global array. Constify spic_attribute_group and sony_laptop_input_index. File size before: text data bss dec hex filename 31273 5176 372 36821 8fd5 drivers/platform/x86/sony-laptop.o File size After adding 'const': text data bss dec hex filename 31337 5112 372 36821 8fd5 drivers/platform/x86/sony-laptop.o Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> [dvhart: updated commit message, includes fix suggested by Arnd Bergmann] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/intel_telemetry_debugfs.c')
0 files changed, 0 insertions, 0 deletions