patch-2.3.15 linux/drivers/usb/mouse.c

Next file: linux/drivers/usb/ohci.c
Previous file: linux/drivers/usb/keyboard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.14/linux/drivers/usb/mouse.c linux/drivers/usb/mouse.c
@@ -256,7 +256,7 @@
 
 static int mouse_probe(struct usb_device *dev)
 {
-	struct usb_interface_descriptor *intf_desc;
+	struct usb_interface_descriptor *interface;
 	struct usb_endpoint_descriptor *endpoint;
 	struct mouse_state *mouse = &static_mouse_state;
 
@@ -269,19 +269,19 @@
 		return -1;
 
 	/* Is it a mouse interface? */
-	intf_desc = &dev->config[0].interface[0].altsetting[0];
-	if (intf_desc->bInterfaceClass != 3)
+	interface = &dev->config[0].interface[0].altsetting[0];
+	if (interface->bInterfaceClass != 3)
 		return -1;
-	if (intf_desc->bInterfaceSubClass != 1)
+	if (interface->bInterfaceSubClass != 1)
 		return -1;
-	if (intf_desc->bInterfaceProtocol != 2)
+	if (interface->bInterfaceProtocol != 2)
 		return -1;
 
 	/* Multiple endpoints? What kind of mutant ninja-mouse is this? */
-	if (intf_desc->bNumEndpoints != 1)
+	if (interface->bNumEndpoints != 1)
 		return -1;
 
-	endpoint = &intf_desc->endpoint[0];
+	endpoint = &interface->endpoint[0];
 
 	/* Output endpoint? Curiousier and curiousier.. */
 	if (!(endpoint->bEndpointAddress & 0x80))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)