Skip to content

Commit

Permalink
Merge branch 'for-4.14/constify-attribute_group' into for-linus
Browse files Browse the repository at this point in the history
- struct attribute_group constification from Arvind Yadav
  • Loading branch information
Jiri Kosina committed Sep 5, 2017
2 parents b11918b + 1d710da commit aaf4f13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/hid/hid-logitech-hidpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,7 @@ static struct attribute *sysfs_attrs[] = {
NULL
};

static struct attribute_group ps_attribute_group = {
static const struct attribute_group ps_attribute_group = {
.attrs = sysfs_attrs
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/hid-multitouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static struct attribute *sysfs_attrs[] = {
NULL
};

static struct attribute_group mt_attribute_group = {
static const struct attribute_group mt_attribute_group = {
.attrs = sysfs_attrs
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/hid-ntrig.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static struct attribute *sysfs_attrs[] = {
NULL
};

static struct attribute_group ntrig_attribute_group = {
static const struct attribute_group ntrig_attribute_group = {
.attrs = sysfs_attrs
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/hid-sensor-custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static struct attribute *enable_sensor_attrs[] = {
NULL,
};

static struct attribute_group enable_sensor_attr_group = {
static const struct attribute_group enable_sensor_attr_group = {
.attrs = enable_sensor_attrs,
};

Expand Down

0 comments on commit aaf4f13

Please sign in to comment.