From: David Herrmann Date: Tue, 5 Jul 2011 11:45:18 +0000 (+0200) Subject: HID: wiimote: Cache wiimote led state X-Git-Tag: v3.1-rc1~309^2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a0d9a522b577d0efa6ce793a6ac0516c5e3627;p=pandora-kernel.git HID: wiimote: Cache wiimote led state Save the current state of the leds in the wiimote data structure. This allows us to discard new led requests that wouldn't change anything. Protect the whole state structure by a spinlock. Every wiiproto_* function expects this spinlock to be held when called. Signed-off-by: David Herrmann Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed