diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 16:49:05 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 17:15:16 +0200 |
commit | 0faef109bdac1328b529342bfc8c3d34005a56fe (patch) | |
tree | cf887530a0fb66efbd79740343b69b9d983b4c69 /drivers | |
parent | a890d56a9d9e4a8345c08f9212504bbc396bb7dd (diff) | |
download | linux-0faef109bdac1328b529342bfc8c3d34005a56fe.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/tlclk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c index 572a51704e67..6210bff46341 100644 --- a/drivers/char/tlclk.c +++ b/drivers/char/tlclk.c @@ -766,7 +766,7 @@ static struct attribute *tlclk_sysfs_entries[] = { NULL }; -static struct attribute_group tlclk_attribute_group = { +static const struct attribute_group tlclk_attribute_group = { .name = NULL, /* put in device directory */ .attrs = tlclk_sysfs_entries, }; |