Input: whitespace fixes in drivers/usb/input
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
@@ -489,8 +489,7 @@ static void ati_remote_input_report(struct urb *urb, struct pt_regs *regs)
|
|||||||
(ati_remote->old_data[1] == data[2]) &&
|
(ati_remote->old_data[1] == data[2]) &&
|
||||||
((ati_remote->old_jiffies + FILTER_TIME) > jiffies)) {
|
((ati_remote->old_jiffies + FILTER_TIME) > jiffies)) {
|
||||||
ati_remote->repeat_count++;
|
ati_remote->repeat_count++;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
ati_remote->repeat_count = 0;
|
ati_remote->repeat_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -142,8 +142,7 @@ static int itmtouch_open(struct input_dev *input)
|
|||||||
|
|
||||||
itmtouch->readurb->dev = itmtouch->usbdev;
|
itmtouch->readurb->dev = itmtouch->usbdev;
|
||||||
|
|
||||||
if (usb_submit_urb(itmtouch->readurb, GFP_KERNEL))
|
if (usb_submit_urb(itmtouch->readurb, GFP_KERNEL)) {
|
||||||
{
|
|
||||||
itmtouch->users--;
|
itmtouch->users--;
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
@@ -224,14 +223,8 @@ static int itmtouch_probe(struct usb_interface *intf, const struct usb_device_id
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
usb_fill_int_urb(itmtouch->readurb,
|
usb_fill_int_urb(itmtouch->readurb, itmtouch->usbdev, pipe, itmtouch->rbuf,
|
||||||
itmtouch->usbdev,
|
maxp, itmtouch_irq, itmtouch, endpoint->bInterval);
|
||||||
pipe,
|
|
||||||
itmtouch->rbuf,
|
|
||||||
maxp,
|
|
||||||
itmtouch_irq,
|
|
||||||
itmtouch,
|
|
||||||
endpoint->bInterval);
|
|
||||||
|
|
||||||
input_register_device(&itmtouch->inputdev);
|
input_register_device(&itmtouch->inputdev);
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ static void kbtab_irq(struct urb *urb, struct pt_regs *regs)
|
|||||||
/*input_report_key(dev, BTN_TOUCH , data[0] & 0x01);*/
|
/*input_report_key(dev, BTN_TOUCH , data[0] & 0x01);*/
|
||||||
input_report_key(dev, BTN_RIGHT, data[0] & 0x02);
|
input_report_key(dev, BTN_RIGHT, data[0] & 0x02);
|
||||||
|
|
||||||
if( -1 == kb_pressure_click){
|
if (-1 == kb_pressure_click) {
|
||||||
input_report_abs(dev, ABS_PRESSURE, kbtab->pressure);
|
input_report_abs(dev, ABS_PRESSURE, kbtab->pressure);
|
||||||
} else {
|
} else {
|
||||||
input_report_key(dev, BTN_LEFT, (kbtab->pressure > kb_pressure_click) ? 1 : 0);
|
input_report_key(dev, BTN_LEFT, (kbtab->pressure > kb_pressure_click) ? 1 : 0);
|
||||||
|
Reference in New Issue
Block a user