]> git.baikalelectronics.ru Git - kernel.git/commitdiff
USB: cdc.h: ncm: fix one more typo
authorYauheni Kaliuta <yauheni.kaliuta@nokia.com>
Fri, 24 Sep 2010 06:43:27 +0000 (09:43 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:48 +0000 (10:21 -0700)
In usb_cdc_ncm_dpe32 the fields are 32 bit long and according
to usb style (hungarian notation) should be called dwDatagramIndex
and dwDatagramLength (see CDC NCM subclass spec, 3.3.2). Actually,
they were called wDatagramIndex, wDatagramLength.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/usb/cdc.h

index 2d5b6f296aa3eeeae6fa8afeabfc595655c53d9e..5e86dc771da4c72fe1a7b0b4a88944170226d2eb 100644 (file)
@@ -343,8 +343,8 @@ struct usb_cdc_ncm_ndp16 {
 
 /* 32-bit NCM Datagram Pointer Entry */
 struct usb_cdc_ncm_dpe32 {
-       __le32  wDatagramIndex;
-       __le32  wDatagramLength;
+       __le32  dwDatagramIndex;
+       __le32  dwDatagramLength;
 } __attribute__((__packed__));
 
 /* 32-bit NCM Datagram Pointer Table */