aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremiah Mahler <jmmahler@gmail.com>2014-06-06 15:29:17 -0400
committerJiri Kosina <jkosina@suse.cz>2014-06-19 09:19:37 -0400
commit429a91db3b3e7f755b1e9fa3bcd95660d84697ad (patch)
treeb2785091a261c7615d5c23f271abdfd77c6d028b
parent8740e687a658dae04f64f99c07891dc4b5f0251f (diff)
usb: doc: hotplug.txt code typos
Fixed several typos in the code examples given in Documentation/usb/hotplug.txt. - missing [] with array of struct usb_device_id - checkpatch.pl warning: space between function name and parenthesis - missing terminating ';' Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--Documentation/usb/hotplug.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/usb/hotplug.txt b/Documentation/usb/hotplug.txt
index 6424b130485c..a80b0e9a7a0b 100644
--- a/Documentation/usb/hotplug.txt
+++ b/Documentation/usb/hotplug.txt
@@ -105,13 +105,13 @@ macros such as these, and use driver_info to store more information.
105A short example, for a driver that supports several specific USB devices 105A short example, for a driver that supports several specific USB devices
106and their quirks, might have a MODULE_DEVICE_TABLE like this: 106and their quirks, might have a MODULE_DEVICE_TABLE like this:
107 107
108 static const struct usb_device_id mydriver_id_table = { 108 static const struct usb_device_id mydriver_id_table[] = {
109 { USB_DEVICE (0x9999, 0xaaaa), driver_info: QUIRK_X }, 109 { USB_DEVICE (0x9999, 0xaaaa), driver_info: QUIRK_X },
110 { USB_DEVICE (0xbbbb, 0x8888), driver_info: QUIRK_Y|QUIRK_Z }, 110 { USB_DEVICE (0xbbbb, 0x8888), driver_info: QUIRK_Y|QUIRK_Z },
111 ... 111 ...
112 { } /* end with an all-zeroes entry */ 112 { } /* end with an all-zeroes entry */
113 } 113 };
114 MODULE_DEVICE_TABLE (usb, mydriver_id_table); 114 MODULE_DEVICE_TABLE(usb, mydriver_id_table);
115 115
116Most USB device drivers should pass these tables to the USB subsystem as 116Most USB device drivers should pass these tables to the USB subsystem as
117well as to the module management subsystem. Not all, though: some driver 117well as to the module management subsystem. Not all, though: some driver
@@ -134,7 +134,7 @@ something like this:
134 if exposing any operations through usbdevfs: 134 if exposing any operations through usbdevfs:
135 .ioctl = my_ioctl, 135 .ioctl = my_ioctl,
136 */ 136 */
137 } 137 };
138 138
139When the USB subsystem knows about a driver's device ID table, it's used when 139When the USB subsystem knows about a driver's device ID table, it's used when
140choosing drivers to probe(). The thread doing new device processing checks 140choosing drivers to probe(). The thread doing new device processing checks