[PATCH 3/3] USB: cdc.h: ncm: add missed constants and structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 20, 2010 at 4:40 PM,  <yauheni.kaliuta@xxxxxxxxx> wrote:
> From: Yauheni Kaliuta <yauheni.kaliuta@xxxxxxxxx>
>
> Make a dedicated structure for datagram pointer entry. There is no 
> explicit declaration in the spec, but it's used by the host 
> implementation and makes the structure more clear.
>
> Add some missed constants from the spec
>
> Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@xxxxxxxxx>
> ---
>  include/linux/usb/cdc.h |   57 

...

> +/* 32-bit NCM Datagram Pointer Entry */ struct usb_cdc_ncm_dpe32 {
> +       __le32  wDatagramIndex;
> +       __le32  wDatagramLength;
> +} __attribute__((__packed__));
> +

We did review of the posted patch and it looks good.

Some minor fix is needed: structure field names should reflect 32 bit size: 
dwDatagramIndex
dwDatagramLength

Hope, we could get this patch in the mainstream soon :-)

Best regards,
Alexey Orishko
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux