]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-core: convert to use DRIVER_ATTR_RO and drv_groups
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:03:04 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jun 2017 14:14:29 +0000 (16:14 +0200)
commitf9db9191be9dfe8799543f8ecfde840a0fa50f93
tree14a9fbe7f0e0180fc9c31886ac4a01f3c62ff4f4
parent25a66a60fd331d255fa30053f6a4093fc63dd551
HID: hid-core: convert to use DRIVER_ATTR_RO and drv_groups

In the quest to get rid of DRIVER_ATTR(), this patch converts the
hid-core code to use DRIVER_ATTR_RO() and also moves to use drv_groups
as creating individual sysfs files is not good (it races with userspace
notifications.)

Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: <linux-input@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-core.c