Skip to content

Commit

Permalink
HID: hid-lg4ff: Support new version of G27
Browse files Browse the repository at this point in the history
It has been reported that there is a new hardware version of the G27
in the 'wild'. This patch add's this new revision so that it can be
sent the command to switch to native mode.

Reported-by: "Ivan Baldo" <[email protected]>
Tested-by: "evilcow" <[email protected]>
Signed-off-by: Simon Wood <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
mungewell authored and Jiri Kosina committed Mar 14, 2014
1 parent 47587fc commit 6b5625b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hid/hid-lg4ff.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#define G25_REV_MIN 0x22
#define G27_REV_MAJ 0x12
#define G27_REV_MIN 0x38
#define G27_2_REV_MIN 0x39

#define to_hid_device(pdev) container_of(pdev, struct hid_device, dev)

Expand Down Expand Up @@ -130,6 +131,7 @@ static const struct lg4ff_usb_revision lg4ff_revs[] = {
{DFP_REV_MAJ, DFP_REV_MIN, &native_dfp}, /* Driving Force Pro */
{G25_REV_MAJ, G25_REV_MIN, &native_g25}, /* G25 */
{G27_REV_MAJ, G27_REV_MIN, &native_g27}, /* G27 */
{G27_REV_MAJ, G27_2_REV_MIN, &native_g27}, /* G27 v2 */
};

/* Recalculates X axis value accordingly to currently selected range */
Expand Down

0 comments on commit 6b5625b

Please sign in to comment.