]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: cpuinfo: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 30 Jun 2017 11:30:20 +0000 (17:00 +0530)
committerWill Deacon <will.deacon@arm.com>
Fri, 30 Jun 2017 12:34:11 +0000 (13:34 +0100)
commit70a62ad19e40a6b0d9e3a048fe0d0a391d76ad12
treec4dec5849beccc21e0acf06504e6f73d8a275ada
parent5fbd5fc49fc39ac8433da62d16682a1d0217ea4f
arm64: cpuinfo: 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.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpuinfo.c