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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:38 +0000 (06:03 +0800)
commitd62365d15278c2e3bdd17b413620264c74590ee6
tree1da492fa4fb679fd1abb3bb43c413cfe51e9a9fc
parent9637341b0dc61b1f541e6eeb8dd2dfee3c9c8245
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).

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-sony.c