HID: logitech-dj: break out testing of validity of dj_device
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 22 Aug 2014 20:16:06 +0000 (16:16 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Aug 2014 21:04:21 +0000 (23:04 +0200)
commit368d4e59b002d0742fc7c25de8fd7b6ad37a434c
tree1d80639e58015de09975a598d6dc66636c0cbac3
parentff0c57ac70434bc936cb0110eaf033a0a1a62e52
HID: logitech-dj: break out testing of validity of dj_device

We can do once the test of the validity of the dj_device, which removes
some duplicated code in various functions.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c