* [PATCH] HID: hid-lg4ff: Support new version of G27
@ 2014-03-13 18:42 Simon Wood
2014-03-14 14:44 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Simon Wood @ 2014-03-13 18:42 UTC (permalink / raw)
To: linux-input; +Cc: Jiri Kosina, linux-kernel, simon, Ivan Baldo, evilcow
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" <ibaldo@adinet.com.uy>
Tested-by: "evilcow" <evilcow93@yahoo.com>
Signed-off-by: Simon Wood <simon@mungewell.org>
---
drivers/hid/hid-lg4ff.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c
index befe0e3..24883b4 100644
--- a/drivers/hid/hid-lg4ff.c
+++ b/drivers/hid/hid-lg4ff.c
@@ -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)
@@ -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 */
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: hid-lg4ff: Support new version of G27
2014-03-13 18:42 [PATCH] HID: hid-lg4ff: Support new version of G27 Simon Wood
@ 2014-03-14 14:44 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2014-03-14 14:44 UTC (permalink / raw)
To: Simon Wood; +Cc: linux-input, linux-kernel, Ivan Baldo, evilcow
On Thu, 13 Mar 2014, Simon Wood wrote:
> 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" <ibaldo@adinet.com.uy>
> Tested-by: "evilcow" <evilcow93@yahoo.com>
> Signed-off-by: Simon Wood <simon@mungewell.org>
> ---
> drivers/hid/hid-lg4ff.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c
> index befe0e3..24883b4 100644
> --- a/drivers/hid/hid-lg4ff.c
> +++ b/drivers/hid/hid-lg4ff.c
> @@ -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)
>
> @@ -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 */
> };
Applied, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-14 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 18:42 [PATCH] HID: hid-lg4ff: Support new version of G27 Simon Wood
2014-03-14 14:44 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).