]> git.baikalelectronics.ru Git - kernel.git/commit
perf/imx_ddr: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 17 Jan 2021 21:28:45 +0000 (22:28 +0100)
committerWill Deacon <will@kernel.org>
Wed, 20 Jan 2021 17:51:22 +0000 (17:51 +0000)
commitb8d8601fb05eb6040cfcfa8a2bbbb3981ddb97af
treed1d94a0813fb9f3f135b9245b739c697654aecc5
parent62280499564ecd1447231920ba1e973beb1a6adb
perf/imx_ddr: Constify static struct attribute_group

The only usage is to put their addresses in an array of pointers to
const struct attribute group. Make them const to allow the compiler
to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210117212847.21319-3-rikard.falkeborn@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/fsl_imx8_ddr_perf.c