Commit af1b85e4 authored by Jay Purohit's avatar Jay Purohit Committed by David S. Miller

usb/ipheth: Add iPhone 5 support

I noticed that the iPhone ethernet driver did not support
iPhone 5. I quickly added support to it in my kernel, here's
a patch.
Signed-off-by: default avatarJay Purohit <jspurohit@velocitylimitless.com>
Acked-by: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: default avatarJan Ceuleers <jan.ceuleers@computer.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6dae8222
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#define USB_PRODUCT_IPAD 0x129a #define USB_PRODUCT_IPAD 0x129a
#define USB_PRODUCT_IPHONE_4_VZW 0x129c #define USB_PRODUCT_IPHONE_4_VZW 0x129c
#define USB_PRODUCT_IPHONE_4S 0x12a0 #define USB_PRODUCT_IPHONE_4S 0x12a0
#define USB_PRODUCT_IPHONE_5 0x12a8
#define IPHETH_USBINTF_CLASS 255 #define IPHETH_USBINTF_CLASS 255
#define IPHETH_USBINTF_SUBCLASS 253 #define IPHETH_USBINTF_SUBCLASS 253
...@@ -113,6 +114,10 @@ static struct usb_device_id ipheth_table[] = { ...@@ -113,6 +114,10 @@ static struct usb_device_id ipheth_table[] = {
USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S, USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO) }, IPHETH_USBINTF_PROTO) },
{ USB_DEVICE_AND_INTERFACE_INFO(
USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_5,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO) },
{ } { }
}; };
MODULE_DEVICE_TABLE(usb, ipheth_table); MODULE_DEVICE_TABLE(usb, ipheth_table);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment