PM: sleep: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 1 Feb 2021 22:57:35 +0000 (23:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Feb 2021 15:46:59 +0000 (16:46 +0100)
commit1556057413a304b3020180240d798ec135d90844
tree8193e006341b2609a240d0d2da7f17de7f27448d
parenteb23d91af55bc2369fe3f0aa6997e72eb20e16fe
PM: sleep: Constify static struct attribute_group

The only usage of suspend_attr_group is to put its address in an
array of pointers to const attribute_group structs.

Make it const to allow the compiler to put it into read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/main.c