Skip to content

Commit

Permalink
usb: atm: ueagle-atm: constify attribute_group structures.
Browse files Browse the repository at this point in the history
attribute_group are not supposed to change at runtime. All functions
working with attribute_group 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Arvind Yadav authored and Greg Kroah-Hartman committed Aug 10, 2017
1 parent a351a2b commit d2032b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/atm/ueagle-atm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@ static struct attribute *attrs[] = {
&dev_attr_stat_firmid.attr,
NULL,
};
static struct attribute_group attr_grp = {
static const struct attribute_group attr_grp = {
.attrs = attrs,
};

Expand Down

0 comments on commit d2032b4

Please sign in to comment.