[PATCH] USB: fix endian issues in yealink driver. sparse still complains about the htons usage, but I'll leave that for others to fix.
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- commit d5ae36dd439549305f00a755556f49c9fa7bb237 tree 50293284d27a48aa49c66b4ac66e8b3bd80eb9f3 parent aca951a22a1d93ebe31b54052b3eb9a8196df2fc author Greg Kroah-Hartman <[EMAIL PROTECTED]> Tue, 16 Aug 2005 12:33:30 -0700 committer Greg Kroah-Hartman <[EMAIL PROTECTED]> Thu, 08 Sep 2005 16:40:57 -0700 drivers/usb/input/yealink.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/input/yealink.c b/drivers/usb/input/yealink.c --- a/drivers/usb/input/yealink.c +++ b/drivers/usb/input/yealink.c @@ -840,9 +840,12 @@ static void usb_disconnect(struct usb_in static int usb_match(struct usb_device *udev) { int i; + u16 idVendor = le16_to_cpu(udev->descriptor.idVendor); + u16 idProduct = le16_to_cpu(udev->descriptor.idProduct); + for (i = 0; i < ARRAY_SIZE(yld_device); i++) { - if ((udev->descriptor.idVendor == yld_device[i].idVendor) && - (udev->descriptor.idProduct == yld_device[i].idProduct)) + if ((idVendor == yld_device[i].idVendor) && + (idProduct == yld_device[i].idProduct)) return i; } return -ENODEV; ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel