Commit 2178db65 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: iforce - drop bus type from iforce structure

It is not needed anymore as behavior is controlled by the transport
operations set up for given device.
Tested-by: default avatarTim Schumacher <timschumi@gmx.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent dfad2b17
...@@ -214,7 +214,6 @@ static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv) ...@@ -214,7 +214,6 @@ static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv)
iforce = &iforce_serio->iforce; iforce = &iforce_serio->iforce;
iforce->xport_ops = &iforce_serio_xport_ops; iforce->xport_ops = &iforce_serio_xport_ops;
iforce->bus = IFORCE_232;
iforce_serio->serio = serio; iforce_serio->serio = serio;
serio_set_drvdata(serio, iforce_serio); serio_set_drvdata(serio, iforce_serio);
......
...@@ -234,7 +234,6 @@ static int iforce_usb_probe(struct usb_interface *intf, ...@@ -234,7 +234,6 @@ static int iforce_usb_probe(struct usb_interface *intf,
iforce = &iforce_usb->iforce; iforce = &iforce_usb->iforce;
iforce->xport_ops = &iforce_usb_xport_ops; iforce->xport_ops = &iforce_usb_xport_ops;
iforce->bus = IFORCE_USB;
iforce_usb->usbdev = dev; iforce_usb->usbdev = dev;
iforce_usb->intf = intf; iforce_usb->intf = intf;
......
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
#define IFORCE_MAX_LENGTH 16 #define IFORCE_MAX_LENGTH 16
/* iforce::bus */
#define IFORCE_232 1
#define IFORCE_USB 2
#define IFORCE_EFFECTS_MAX 32 #define IFORCE_EFFECTS_MAX 32
/* Each force feedback effect is made of one core effect, which can be /* Each force feedback effect is made of one core effect, which can be
...@@ -105,7 +101,6 @@ struct iforce { ...@@ -105,7 +101,6 @@ struct iforce {
struct input_dev *dev; /* Input device interface */ struct input_dev *dev; /* Input device interface */
struct iforce_device *type; struct iforce_device *type;
const struct iforce_xport_ops *xport_ops; const struct iforce_xport_ops *xport_ops;
int bus;
spinlock_t xmit_lock; spinlock_t xmit_lock;
/* Buffer used for asynchronous sending of bytes to the device */ /* Buffer used for asynchronous sending of bytes to the device */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment