HID: cougar: make compare_device_paths reusable
authorDaniel M. Lambea <dmlambea@gmail.com>
Tue, 17 Jul 2018 21:35:36 +0000 (22:35 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 23 Jul 2018 09:35:05 +0000 (11:35 +0200)
commit1a8861f117608e269647fb09658ce77bd5899d42
tree6ebd9e26f1bd3278c19f22f45ea96dcc6ff24153
parent092150a25cb7bd6a79aa00bb1ad131063f58073d
HID: cougar: make compare_device_paths reusable

The function compare_device_paths from wacom_sys.c is generic
and useful for other drivers. Move the function to hid-core and
rename it as hid_compare_device_paths.

Signed-off-by: Daniel M. Lambea <dmlambea@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/wacom_sys.c
include/linux/hid.h