]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sensor: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 3 Aug 2017 11:28:35 +0000 (16:58 +0530)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Aug 2017 11:38:30 +0000 (13:38 +0200)
commite2610d3faf3192e47da3884d0547140f2832e2cb
treed3c0c16c475bb17b1f6d70ddd0995005a0f9cccc
parent1e8ec9dffb915d5113e54051ce50ad47c86775a2
HID: sensor: 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-sensor-custom.c