summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/wilco_ec
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-01-09 01:17:48 +0100
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2021-01-20 16:19:17 +0100
commitd7c1fef7fdc769ee45771059da823c8840590472 (patch)
tree22fff0c6cedddd14d8f3cef44868902193e51bbf /drivers/platform/chrome/wilco_ec
parent852405d8efcbca0e02f14592fb1d1dcd0d3fb508 (diff)
downloadlinux-stable-d7c1fef7fdc769ee45771059da823c8840590472.tar.gz
linux-stable-d7c1fef7fdc769ee45771059da823c8840590472.tar.bz2
linux-stable-d7c1fef7fdc769ee45771059da823c8840590472.zip
platform/chrome: Constify static attribute_group structs
The only usage of these is to print their name in a dev_err-message, and to pass their address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210109001748.58036-1-rikard.falkeborn@gmail.com
Diffstat (limited to 'drivers/platform/chrome/wilco_ec')
-rw-r--r--drivers/platform/chrome/wilco_ec/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/wilco_ec/sysfs.c b/drivers/platform/chrome/wilco_ec/sysfs.c
index 3c587b4054a5..79a5e8fa680f 100644
--- a/drivers/platform/chrome/wilco_ec/sysfs.c
+++ b/drivers/platform/chrome/wilco_ec/sysfs.c
@@ -236,7 +236,7 @@ static struct attribute *wilco_dev_attrs[] = {
NULL,
};
-static struct attribute_group wilco_dev_attr_group = {
+static const struct attribute_group wilco_dev_attr_group = {
.attrs = wilco_dev_attrs,
};