projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cd819e
)
parisc: pdc_stable: constify attribute_group structures.
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Tue, 11 Jul 2017 09:00:34 +0000
(14:30 +0530)
committer
Helge Deller
<deller@gmx.de>
Sun, 23 Jul 2017 19:02:17 +0000
(21:02 +0200)
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: Helge Deller <deller@gmx.de>
drivers/parisc/pdc_stable.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/parisc/pdc_stable.c
b/drivers/parisc/pdc_stable.c
index 055f83fddc188d42e37869b4d403dfab635c9461..7147aa53e9a218b78303968b7444383a39e576ee 100644
(file)
--- a/
drivers/parisc/pdc_stable.c
+++ b/
drivers/parisc/pdc_stable.c
@@
-954,7
+954,7
@@
static struct attribute *pdcs_subsys_attrs[] = {
NULL,
};
-static struct attribute_group pdcs_attr_group = {
+static
const
struct attribute_group pdcs_attr_group = {
.attrs = pdcs_subsys_attrs,
};