HID: clean up quirk for Sony RF receivers
authorFernando Luis Vázquez Cao <fernando_b1@lab.ntt.co.jp>
Tue, 22 Jan 2013 06:20:38 +0000 (15:20 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:25 +0000 (15:03 +0000)
commit76610d6dfbe4d5f47ce59582d99e1355efaea916
tree9e64ea55ae3055f2218c368283599725326bdad6
parent3207e0076af2a4565230f7c280675383321ecd16
HID: clean up quirk for Sony RF receivers

commit 99d249021abd4341771523ed8dd7946276103432 upstream.

Document what the fix-up is does and make it more robust by ensuring
that it is only applied to the USB interface that corresponds to the
mouse (sony_report_fixup() is called once per interface during probing).

Cc: linux-input@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hid/hid-sony.c