Input: iforce - move get_id to the transport operations
commit2a1433ff08a1b23e3003483ee2883d327f78db9e
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Jul 2018 00:49:34 +0000 (26 17:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 23 Jun 2019 06:54:38 +0000 (22 23:54 -0700)
treef946093884aa6611814f4c44d76885a33770036d
parent38d107690df7f0826adb5b53f4e87676859ff0a6
Input: iforce - move get_id to the transport operations

To avoid #ifdef-ing out parts of the code and having conditionals in normal
control flow, let's define "get_id" transport method and move
implementation into respective transport modules.

Tested-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-packets.c
drivers/input/joystick/iforce/iforce-serio.c
drivers/input/joystick/iforce/iforce-usb.c
drivers/input/joystick/iforce/iforce.h