@@ -1173,7 +1173,7 @@ static struct attribute *cintiq_led_attrs[] = {
11731173 NULL
11741174};
11751175
1176- static struct attribute_group cintiq_led_attr_group = {
1176+ static const struct attribute_group cintiq_led_attr_group = {
11771177 .name = "wacom_led" ,
11781178 .attrs = cintiq_led_attrs ,
11791179};
@@ -1194,7 +1194,7 @@ static struct attribute *intuos4_led_attrs[] = {
11941194 NULL
11951195};
11961196
1197- static struct attribute_group intuos4_led_attr_group = {
1197+ static const struct attribute_group intuos4_led_attr_group = {
11981198 .name = "wacom_led" ,
11991199 .attrs = intuos4_led_attrs ,
12001200};
@@ -1205,7 +1205,7 @@ static struct attribute *intuos5_led_attrs[] = {
12051205 NULL
12061206};
12071207
1208- static struct attribute_group intuos5_led_attr_group = {
1208+ static const struct attribute_group intuos5_led_attr_group = {
12091209 .name = "wacom_led" ,
12101210 .attrs = intuos5_led_attrs ,
12111211};
@@ -1216,13 +1216,13 @@ static struct attribute *generic_led_attrs[] = {
12161216 NULL
12171217};
12181218
1219- static struct attribute_group generic_led_attr_group = {
1219+ static const struct attribute_group generic_led_attr_group = {
12201220 .name = "wacom_led" ,
12211221 .attrs = generic_led_attrs ,
12221222};
12231223
12241224struct wacom_sysfs_group_devres {
1225- struct attribute_group * group ;
1225+ const struct attribute_group * group ;
12261226 struct kobject * root ;
12271227};
12281228
@@ -1238,7 +1238,7 @@ static void wacom_devm_sysfs_group_release(struct device *dev, void *res)
12381238
12391239static int __wacom_devm_sysfs_create_group (struct wacom * wacom ,
12401240 struct kobject * root ,
1241- struct attribute_group * group )
1241+ const struct attribute_group * group )
12421242{
12431243 struct wacom_sysfs_group_devres * devres ;
12441244 int error ;
@@ -1264,7 +1264,7 @@ static int __wacom_devm_sysfs_create_group(struct wacom *wacom,
12641264}
12651265
12661266static int wacom_devm_sysfs_create_group (struct wacom * wacom ,
1267- struct attribute_group * group )
1267+ const struct attribute_group * group )
12681268{
12691269 return __wacom_devm_sysfs_create_group (wacom , & wacom -> hdev -> dev .kobj ,
12701270 group );
@@ -1847,7 +1847,7 @@ static struct attribute *remote##SET_ID##_serial_attrs[] = { \
18471847 &remote##SET_ID##_mode_attr.attr, \
18481848 NULL \
18491849}; \
1850- static struct attribute_group remote##SET_ID##_serial_group = { \
1850+ static const struct attribute_group remote##SET_ID##_serial_group = { \
18511851 .name = NULL, \
18521852 .attrs = remote##SET_ID##_serial_attrs, \
18531853}
0 commit comments