diff options
author | Mathieu OTHACEHE <m.othacehe@gmail.com> | 2016-05-12 04:48:33 -0400 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2016-07-15 06:06:13 -0400 |
commit | 8bf344d7ffe919f1f9fe7018dae80470fc4fa0b7 (patch) | |
tree | 57c855f50a13ef6af6ce9de8c77cd865f8716f67 | |
parent | 92d21ac74a9e3c09b0b01c764e530657e4c85c49 (diff) |
USB: serial: ti_usb_3410_5052: remove useless comments
Remove lines commenting the obvious.
Remove vi related comment.
Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
-rw-r--r-- | drivers/usb/serial/ti_usb_3410_5052.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index e7dbbef2af2a..903b45c3fae6 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* vi: ts=8 sw=8 | 1 | /* |
2 | * | ||
3 | * TI 3410/5052 USB Serial Driver | 2 | * TI 3410/5052 USB Serial Driver |
4 | * | 3 | * |
5 | * Copyright (C) 2004 Texas Instruments | 4 | * Copyright (C) 2004 Texas Instruments |
@@ -37,8 +36,6 @@ | |||
37 | 36 | ||
38 | #include "ti_usb_3410_5052.h" | 37 | #include "ti_usb_3410_5052.h" |
39 | 38 | ||
40 | /* Defines */ | ||
41 | |||
42 | #define TI_DRIVER_AUTHOR "Al Borchers <alborchers@steinerpoint.com>" | 39 | #define TI_DRIVER_AUTHOR "Al Borchers <alborchers@steinerpoint.com>" |
43 | #define TI_DRIVER_DESC "TI USB 3410/5052 Serial Driver" | 40 | #define TI_DRIVER_DESC "TI USB 3410/5052 Serial Driver" |
44 | 41 | ||
@@ -58,9 +55,6 @@ | |||
58 | 55 | ||
59 | #define TI_EXTRA_VID_PID_COUNT 5 | 56 | #define TI_EXTRA_VID_PID_COUNT 5 |
60 | 57 | ||
61 | |||
62 | /* Structures */ | ||
63 | |||
64 | struct ti_port { | 58 | struct ti_port { |
65 | int tp_is_open; | 59 | int tp_is_open; |
66 | __u8 tp_msr; | 60 | __u8 tp_msr; |
@@ -84,9 +78,6 @@ struct ti_device { | |||
84 | int td_urb_error; | 78 | int td_urb_error; |
85 | }; | 79 | }; |
86 | 80 | ||
87 | |||
88 | /* Function Declarations */ | ||
89 | |||
90 | static int ti_startup(struct usb_serial *serial); | 81 | static int ti_startup(struct usb_serial *serial); |
91 | static void ti_release(struct usb_serial *serial); | 82 | static void ti_release(struct usb_serial *serial); |
92 | static int ti_port_probe(struct usb_serial_port *port); | 83 | static int ti_port_probe(struct usb_serial_port *port); |
@@ -136,13 +127,8 @@ static int ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev, | |||
136 | 127 | ||
137 | static int ti_download_firmware(struct ti_device *tdev); | 128 | static int ti_download_firmware(struct ti_device *tdev); |
138 | 129 | ||
139 | |||
140 | /* Data */ | ||
141 | |||
142 | /* module parameters */ | ||
143 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; | 130 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; |
144 | 131 | ||
145 | /* supported devices */ | ||
146 | static const struct usb_device_id ti_id_table_3410[] = { | 132 | static const struct usb_device_id ti_id_table_3410[] = { |
147 | { USB_DEVICE(TI_VENDOR_ID, TI_3410_PRODUCT_ID) }, | 133 | { USB_DEVICE(TI_VENDOR_ID, TI_3410_PRODUCT_ID) }, |
148 | { USB_DEVICE(TI_VENDOR_ID, TI_3410_EZ430_ID) }, | 134 | { USB_DEVICE(TI_VENDOR_ID, TI_3410_EZ430_ID) }, |
@@ -174,7 +160,7 @@ static const struct usb_device_id ti_id_table_5052[] = { | |||
174 | { USB_DEVICE(TI_VENDOR_ID, TI_5152_BOOT_PRODUCT_ID) }, | 160 | { USB_DEVICE(TI_VENDOR_ID, TI_5152_BOOT_PRODUCT_ID) }, |
175 | { USB_DEVICE(TI_VENDOR_ID, TI_5052_EEPROM_PRODUCT_ID) }, | 161 | { USB_DEVICE(TI_VENDOR_ID, TI_5052_EEPROM_PRODUCT_ID) }, |
176 | { USB_DEVICE(TI_VENDOR_ID, TI_5052_FIRMWARE_PRODUCT_ID) }, | 162 | { USB_DEVICE(TI_VENDOR_ID, TI_5052_FIRMWARE_PRODUCT_ID) }, |
177 | { } /* terminator */ | 163 | { } |
178 | }; | 164 | }; |
179 | 165 | ||
180 | static const struct usb_device_id ti_id_table_combined[] = { | 166 | static const struct usb_device_id ti_id_table_combined[] = { |
@@ -275,8 +261,6 @@ static struct usb_serial_driver * const serial_drivers[] = { | |||
275 | &ti_1port_device, &ti_2port_device, NULL | 261 | &ti_1port_device, &ti_2port_device, NULL |
276 | }; | 262 | }; |
277 | 263 | ||
278 | /* Module */ | ||
279 | |||
280 | MODULE_AUTHOR(TI_DRIVER_AUTHOR); | 264 | MODULE_AUTHOR(TI_DRIVER_AUTHOR); |
281 | MODULE_DESCRIPTION(TI_DRIVER_DESC); | 265 | MODULE_DESCRIPTION(TI_DRIVER_DESC); |
282 | MODULE_LICENSE("GPL"); | 266 | MODULE_LICENSE("GPL"); |
@@ -302,8 +286,6 @@ MODULE_DEVICE_TABLE(usb, ti_id_table_combined); | |||
302 | 286 | ||
303 | module_usb_serial_driver(serial_drivers, ti_id_table_combined); | 287 | module_usb_serial_driver(serial_drivers, ti_id_table_combined); |
304 | 288 | ||
305 | /* Functions */ | ||
306 | |||
307 | static int ti_startup(struct usb_serial *serial) | 289 | static int ti_startup(struct usb_serial *serial) |
308 | { | 290 | { |
309 | struct ti_device *tdev; | 291 | struct ti_device *tdev; |
@@ -319,7 +301,6 @@ static int ti_startup(struct usb_serial *serial) | |||
319 | dev->descriptor.bNumConfigurations, | 301 | dev->descriptor.bNumConfigurations, |
320 | dev->actconfig->desc.bConfigurationValue); | 302 | dev->actconfig->desc.bConfigurationValue); |
321 | 303 | ||
322 | /* create device structure */ | ||
323 | tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); | 304 | tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); |
324 | if (!tdev) | 305 | if (!tdev) |
325 | return -ENOMEM; | 306 | return -ENOMEM; |