]> git.baikalelectronics.ru Git - kernel.git/commit
most: core: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 Jan 2021 22:15:12 +0000 (23:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jan 2021 18:24:51 +0000 (19:24 +0100)
commit9517fbabf089f3ed49ca5c0055013c51b1adbcde
tree2f8d02ada4c25d3663dc2b754d7a59a33e9d5fe5
parentf77d75ff9ae417650522d7a3f00a80abbd81c688
most: core: Constify static attribute_group structs

The only usage of these is to put their addresses in arrays of pointers
to const attribute_groups. 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/20210108221512.18811-1-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/most/core.c