]> git.baikalelectronics.ru Git - kernel.git/commit
HID: logitech-hidpp: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 3 Aug 2017 11:29:04 +0000 (16:59 +0530)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Aug 2017 11:38:30 +0000 (13:38 +0200)
commit5d9b54953f317e0ae59804afb005cdea63938b77
tree0cdaffa7d550dd13290c820a5ae2fd67a859c9ef
parente2610d3faf3192e47da3884d0547140f2832e2cb
HID: logitech-hidpp: 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: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c