diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-05-29 03:29:01 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-05-29 03:29:01 -0400 |
commit | 05f091ab4c8c1f12f8dd38ee789489904fea327d (patch) | |
tree | 6ad1f600921354b3ea834b84f33ce9397f6818a5 /drivers/usb/input/usbmouse.c | |
parent | ab0c3443ad2de03383f2549195badf64779d08a1 (diff) |
Input: whitespace fixes in drivers/usb/input
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/usbmouse.c')
-rw-r--r-- | drivers/usb/input/usbmouse.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/usb/input/usbmouse.c b/drivers/usb/input/usbmouse.c index 01155bbddd43..8ca2811fd174 100644 --- a/drivers/usb/input/usbmouse.c +++ b/drivers/usb/input/usbmouse.c | |||
@@ -9,18 +9,18 @@ | |||
9 | /* | 9 | /* |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License as published by | 11 | * it under the terms of the GNU General Public License as published by |
12 | * the Free Software Foundation; either version 2 of the License, or | 12 | * the Free Software Foundation; either version 2 of the License, or |
13 | * (at your option) any later version. | 13 | * (at your option) any later version. |
14 | * | 14 | * |
15 | * This program is distributed in the hope that it will be useful, | 15 | * This program is distributed in the hope that it will be useful, |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | * GNU General Public License for more details. | 18 | * GNU General Public License for more details. |
19 | * | 19 | * |
20 | * You should have received a copy of the GNU General Public License | 20 | * You should have received a copy of the GNU General Public License |
21 | * along with this program; if not, write to the Free Software | 21 | * along with this program; if not, write to the Free Software |
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | * | 23 | * |
24 | * Should you need to contact me, the author, you can do so either by | 24 | * Should you need to contact me, the author, you can do so either by |
25 | * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: | 25 | * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: |
26 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | 26 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic |
@@ -132,19 +132,19 @@ static int usb_mouse_probe(struct usb_interface * intf, const struct usb_device_ | |||
132 | 132 | ||
133 | interface = intf->cur_altsetting; | 133 | interface = intf->cur_altsetting; |
134 | 134 | ||
135 | if (interface->desc.bNumEndpoints != 1) | 135 | if (interface->desc.bNumEndpoints != 1) |
136 | return -ENODEV; | 136 | return -ENODEV; |
137 | 137 | ||
138 | endpoint = &interface->endpoint[0].desc; | 138 | endpoint = &interface->endpoint[0].desc; |
139 | if (!(endpoint->bEndpointAddress & 0x80)) | 139 | if (!(endpoint->bEndpointAddress & 0x80)) |
140 | return -ENODEV; | 140 | return -ENODEV; |
141 | if ((endpoint->bmAttributes & 3) != 3) | 141 | if ((endpoint->bmAttributes & 3) != 3) |
142 | return -ENODEV; | 142 | return -ENODEV; |
143 | 143 | ||
144 | pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); | 144 | pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); |
145 | maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); | 145 | maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); |
146 | 146 | ||
147 | if (!(mouse = kmalloc(sizeof(struct usb_mouse), GFP_KERNEL))) | 147 | if (!(mouse = kmalloc(sizeof(struct usb_mouse), GFP_KERNEL))) |
148 | return -ENOMEM; | 148 | return -ENOMEM; |
149 | memset(mouse, 0, sizeof(struct usb_mouse)); | 149 | memset(mouse, 0, sizeof(struct usb_mouse)); |
150 | 150 | ||
@@ -209,7 +209,7 @@ static int usb_mouse_probe(struct usb_interface * intf, const struct usb_device_ | |||
209 | static void usb_mouse_disconnect(struct usb_interface *intf) | 209 | static void usb_mouse_disconnect(struct usb_interface *intf) |
210 | { | 210 | { |
211 | struct usb_mouse *mouse = usb_get_intfdata (intf); | 211 | struct usb_mouse *mouse = usb_get_intfdata (intf); |
212 | 212 | ||
213 | usb_set_intfdata(intf, NULL); | 213 | usb_set_intfdata(intf, NULL); |
214 | if (mouse) { | 214 | if (mouse) { |
215 | usb_kill_urb(mouse->irq); | 215 | usb_kill_urb(mouse->irq); |
@@ -238,7 +238,7 @@ static struct usb_driver usb_mouse_driver = { | |||
238 | static int __init usb_mouse_init(void) | 238 | static int __init usb_mouse_init(void) |
239 | { | 239 | { |
240 | int retval = usb_register(&usb_mouse_driver); | 240 | int retval = usb_register(&usb_mouse_driver); |
241 | if (retval == 0) | 241 | if (retval == 0) |
242 | info(DRIVER_VERSION ":" DRIVER_DESC); | 242 | info(DRIVER_VERSION ":" DRIVER_DESC); |
243 | return retval; | 243 | return retval; |
244 | } | 244 | } |