Skip to content

Commit 0faef10

Browse files
ArvindYadavCsgregkh
authored andcommitted
char: tlclk: constify attribute_group structures.
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>
1 parent a890d56 commit 0faef10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/char/tlclk.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ static struct attribute *tlclk_sysfs_entries[] = {
766766
NULL
767767
};
768768

769-
static struct attribute_group tlclk_attribute_group = {
769+
static const struct attribute_group tlclk_attribute_group = {
770770
.name = NULL, /* put in device directory */
771771
.attrs = tlclk_sysfs_entries,
772772
};

0 commit comments

Comments
 (0)