HID: roccat: cleaned up code for Kone and fixed wrong initialization value
authorStefan Achatz <erazor_de@users.sourceforge.net>
Sat, 27 Aug 2011 13:24:48 +0000 (15:24 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Sep 2011 11:38:28 +0000 (13:38 +0200)
commitbd9c35d0e5d442568f22e64066a5e687e54881a4
treea1cfb7c98f0e3a4339b81a6821fd419027e267c9
parent6b9a57b9fb8194e00d49779bd0d1130844db6a84
HID: roccat: cleaned up code for Kone and fixed wrong initialization value

Introduced function kone_profile_activated() to reduce code duplication.
This by the way fixes a wrong initialization value.
Also fixes early mutex unlocks.

Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-roccat-kone.c