SHARE
TWEET

Untitled

a guest Oct 24th, 2010 451 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -uNr linux-2.6.35/drivers/hid/hid-apple.c linux-2.6.35-MacbookAir/drivers/hid/hid-apple.c
  2. --- linux-2.6.35/drivers/hid/hid-apple.c        2010-08-02 00:11:14.000000000 +0200
  3. +++ linux-2.6.35-MacbookAir/drivers/hid/hid-apple.c     2010-10-24 16:33:20.722918002 +0200
  4. @@ -59,6 +59,27 @@
  5.         u8 flags;
  6.  };
  7.  
  8. +static const struct apple_key_translation macbookair_fn_keys[] = {
  9. +       { KEY_BACKSPACE, KEY_DELETE },
  10. +       { KEY_ENTER,    KEY_INSERT },
  11. +       { KEY_F1,       KEY_BRIGHTNESSDOWN, APPLE_FLAG_FKEY },
  12. +       { KEY_F2,       KEY_BRIGHTNESSUP,   APPLE_FLAG_FKEY },
  13. +       { KEY_F3,       KEY_SCALE,          APPLE_FLAG_FKEY },
  14. +       { KEY_F4,       KEY_DASHBOARD,      APPLE_FLAG_FKEY },
  15. +       { KEY_F6,       KEY_PREVIOUSSONG,   APPLE_FLAG_FKEY },
  16. +       { KEY_F7,       KEY_PLAYPAUSE,      APPLE_FLAG_FKEY },
  17. +       { KEY_F8,       KEY_NEXTSONG,       APPLE_FLAG_FKEY },
  18. +       { KEY_F9,       KEY_MUTE,           APPLE_FLAG_FKEY },
  19. +       { KEY_F10,      KEY_VOLUMEDOWN,     APPLE_FLAG_FKEY },
  20. +       { KEY_F11,      KEY_VOLUMEUP,       APPLE_FLAG_FKEY },
  21. +       { KEY_F12,      KEY_EJECTCD,        APPLE_FLAG_FKEY },
  22. +       { KEY_UP,       KEY_PAGEUP },
  23. +       { KEY_DOWN,     KEY_PAGEDOWN },
  24. +       { KEY_LEFT,     KEY_HOME },
  25. +       { KEY_RIGHT,    KEY_END },
  26. +       { }
  27. +};
  28. +
  29.  static const struct apple_key_translation apple_fn_keys[] = {
  30.         { KEY_BACKSPACE, KEY_DELETE },
  31.         { KEY_ENTER,    KEY_INSERT },
  32. @@ -157,10 +178,14 @@
  33.         if (fnmode) {
  34.                 int do_translate;
  35.  
  36. -               trans = apple_find_translation((hid->product < 0x21d ||
  37. +               if(hid->product >= 0x023f && hid->product <= 0x0244 ) {
  38. +                       trans = apple_find_translation(macbookair_fn_keys, usage->code);
  39. +               } else {
  40. +                       trans = apple_find_translation((hid->product < 0x21d ||
  41.                                         hid->product >= 0x300) ?
  42.                                         powerbook_fn_keys : apple_fn_keys,
  43.                                         usage->code);
  44. +               }
  45.                 if (trans) {
  46.                         if (test_bit(usage->code, asc->pressed_fn))
  47.                                 do_translate = 1;
  48. @@ -439,6 +464,18 @@
  49.                 .driver_data = APPLE_HAS_FN | APPLE_ISO_KEYBOARD },
  50.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_JIS),
  51.                 .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
  52. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI),
  53. +               .driver_data = APPLE_HAS_FN },
  54. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ISO),
  55. +               .driver_data = APPLE_HAS_FN | APPLE_ISO_KEYBOARD },
  56. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_JIS),
  57. +               .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
  58. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI),
  59. +               .driver_data = APPLE_HAS_FN },
  60. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ISO),
  61. +               .driver_data = APPLE_HAS_FN | APPLE_ISO_KEYBOARD },
  62. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_JIS),
  63. +               .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
  64.         { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ANSI),
  65.                 .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
  66.         { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO),
  67. diff -uNr linux-2.6.35/drivers/hid/hid-core.c linux-2.6.35-MacbookAir/drivers/hid/hid-core.c
  68. --- linux-2.6.35/drivers/hid/hid-core.c 2010-10-23 06:59:31.000000000 +0200
  69. +++ linux-2.6.35-MacbookAir/drivers/hid/hid-core.c      2010-10-24 07:40:57.055679001 +0200
  70. @@ -1276,6 +1276,12 @@
  71.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI) },
  72.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ISO) },
  73.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_JIS) },
  74. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI) },
  75. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ISO) },
  76. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_JIS) },
  77. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI) },
  78. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ISO) },
  79. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_JIS) },
  80.         { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ANSI) },
  81.         { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO) },
  82.         { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_JIS) },
  83. @@ -1736,6 +1742,12 @@
  84.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI) },
  85.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ISO) },
  86.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_JIS) },
  87. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI) },
  88. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ISO) },
  89. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_JIS) },
  90. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI) },
  91. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ISO) },
  92. +       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_JIS) },
  93.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
  94.         { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
  95.         { }
  96. diff -uNr linux-2.6.35/drivers/hid/hid-ids.h linux-2.6.35-MacbookAir/drivers/hid/hid-ids.h
  97. --- linux-2.6.35/drivers/hid/hid-ids.h  2010-10-23 06:59:31.000000000 +0200
  98. +++ linux-2.6.35-MacbookAir/drivers/hid/hid-ids.h       2010-10-24 07:34:52.632586002 +0200
  99. @@ -94,6 +94,12 @@
  100.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI   0x0236
  101.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_ISO    0x0237
  102.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_JIS    0x0238
  103. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI   0x0242
  104. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_ISO    0x0243
  105. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_JIS    0x0244
  106. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI   0x023f
  107. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_ISO    0x0240
  108. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_JIS    0x0241
  109.  #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ANSI  0x0239
  110.  #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO   0x023a
  111.  #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_JIS   0x023b
  112. diff -uNr linux-2.6.35/drivers/hid/Module.symvers linux-2.6.35-MacbookAir/drivers/hid/Module.symvers
  113. --- linux-2.6.35/drivers/hid/Module.symvers     1970-01-01 01:00:00.000000000 +0100
  114. +++ linux-2.6.35-MacbookAir/drivers/hid/Module.symvers  2010-10-24 07:48:15.385679001 +0200
  115. @@ -0,0 +1,35 @@
  116. +0x7f12da61     roccat_connect  drivers/hid/hid-roccat  EXPORT_SYMBOL_GPL
  117. +0x6bdee2e0     hidinput_connect        drivers/hid/hid EXPORT_SYMBOL_GPL
  118. +0x2f622ea1     roccat_disconnect       drivers/hid/hid-roccat  EXPORT_SYMBOL_GPL
  119. +0xb9029e46     hid_set_field   drivers/hid/hid EXPORT_SYMBOL_GPL
  120. +0xc7c4bc9c     hid_destroy_device      drivers/hid/hid EXPORT_SYMBOL_GPL
  121. +0x8f0cfe18     hid_input_report        drivers/hid/hid EXPORT_SYMBOL_GPL
  122. +0x3fa98af1     hiddev_hid_event        drivers/hid/usbhid/usbhid       EXPORT_SYMBOL_GPL
  123. +0xb0cf1343     usbhid_wait_io  drivers/hid/usbhid/usbhid       EXPORT_SYMBOL_GPL
  124. +0x27c2bc49     hidinput_find_field     drivers/hid/hid EXPORT_SYMBOL_GPL
  125. +0xe57d28ec     hid_report_raw_event    drivers/hid/hid EXPORT_SYMBOL_GPL
  126. +0x745ce5a5     hidinput_disconnect     drivers/hid/hid EXPORT_SYMBOL_GPL
  127. +0x89b5cd12     usbhid_set_leds drivers/hid/usbhid/usbhid       EXPORT_SYMBOL_GPL
  128. +0xce2d30ff     hid_allocate_device     drivers/hid/hid EXPORT_SYMBOL_GPL
  129. +0x01fd453e     usbhid_lookup_quirk     drivers/hid/usbhid/usbhid       EXPORT_SYMBOL_GPL
  130. +0x41b6744a     __hid_register_driver   drivers/hid/hid EXPORT_SYMBOL_GPL
  131. +0xdfdb2880     hid_disconnect  drivers/hid/hid EXPORT_SYMBOL_GPL
  132. +0x54d45ada     hid_unregister_driver   drivers/hid/hid EXPORT_SYMBOL_GPL
  133. +0x99c614cc     hid_dump_device drivers/hid/hid EXPORT_SYMBOL_GPL
  134. +0xa226e724     hidraw_report_event     drivers/hid/hid EXPORT_SYMBOL_GPL
  135. +0xc0ac74a7     hid_register_report     drivers/hid/hid EXPORT_SYMBOL_GPL
  136. +0xa6ae1e30     hid_debug_event drivers/hid/hid EXPORT_SYMBOL_GPL
  137. +0x71515505     hidraw_connect  drivers/hid/hid EXPORT_SYMBOL_GPL
  138. +0x1e59201f     hid_check_keys_pressed  drivers/hid/hid EXPORT_SYMBOL_GPL
  139. +0x8bea11e1     hidraw_disconnect       drivers/hid/hid EXPORT_SYMBOL_GPL
  140. +0x29294e92     hid_output_report       drivers/hid/hid EXPORT_SYMBOL_GPL
  141. +0x1a2b92f4     usbhid_submit_report    drivers/hid/usbhid/usbhid       EXPORT_SYMBOL_GPL
  142. +0x68e17740     hid_dump_field  drivers/hid/hid EXPORT_SYMBOL_GPL
  143. +0x2242b42f     hid_connect     drivers/hid/hid EXPORT_SYMBOL_GPL
  144. +0xea6560d3     hid_parse_report        drivers/hid/hid EXPORT_SYMBOL_GPL
  145. +0x34179ad5     hid_resolv_usage        drivers/hid/hid EXPORT_SYMBOL_GPL
  146. +0x05495392     hid_debug       drivers/hid/hid EXPORT_SYMBOL_GPL
  147. +0xa2e6d589     hid_add_device  drivers/hid/hid EXPORT_SYMBOL_GPL
  148. +0x7e977c46     hid_dump_input  drivers/hid/hid EXPORT_SYMBOL_GPL
  149. +0x75646916     roccat_report_event     drivers/hid/hid-roccat  EXPORT_SYMBOL_GPL
  150. +0x7e2d0fc2     hidinput_report_event   drivers/hid/hid EXPORT_SYMBOL_GPL
  151. diff -uNr linux-2.6.35/drivers/hwmon/applesmc.c linux-2.6.35-MacbookAir/drivers/hwmon/applesmc.c
  152. --- linux-2.6.35/drivers/hwmon/applesmc.c       2010-08-02 00:11:14.000000000 +0200
  153. +++ linux-2.6.35-MacbookAir/drivers/hwmon/applesmc.c    2010-10-24 07:45:02.085679002 +0200
  154. @@ -162,6 +162,8 @@
  155.  /* Set 22: MacBook Pro 7,1 */
  156.         { "TB0T", "TB1T", "TB2T", "TC0D", "TC0P", "TN0D", "TN0P", "TN0S",
  157.           "TN1D", "TN1F", "TN1G", "TN1S", "Th1H", "Ts0P", "Ts0S", NULL },
  158. +/* Set 23: MacBook Air 3,1 */
  159. +       { "TB0T", "TB1T", "TB2T", "TC0D", "TN0D", "Tp0P", "Ts0P", "Ts0S", NULL },
  160.  };
  161.  
  162.  /* List of keys used to read/write fan speeds */
  163. @@ -1524,11 +1526,21 @@
  164.         { .accelerometer = 1, .light = 1, .temperature_set = 21 },
  165.  /* MacBook Pro 7,1: accelerometer, backlight and temperature set 22 */
  166.         { .accelerometer = 1, .light = 1, .temperature_set = 22 },
  167. +/* MacBook Air 3,1: accelerometer, backlight and temperature set 15 */
  168. +       { .accelerometer = 0, .light = 0, .temperature_set = 23 },
  169.  };
  170.  
  171.  /* Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1".
  172.   * So we need to put "Apple MacBook Pro" before "Apple MacBook". */
  173.  static __initdata struct dmi_system_id applesmc_whitelist[] = {
  174. +       { applesmc_dmi_match, "Apple MacBook Air 3", {
  175. +         DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
  176. +         DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir3,2") },
  177. +               &applesmc_dmi_data[23]},
  178. +       { applesmc_dmi_match, "Apple MacBook Air 3", {
  179. +         DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
  180. +         DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir3,1") },
  181. +               &applesmc_dmi_data[23]},
  182.         { applesmc_dmi_match, "Apple MacBook Air 2", {
  183.           DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
  184.           DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir2") },
  185. diff -uNr linux-2.6.35/drivers/hwmon/Module.symvers linux-2.6.35-MacbookAir/drivers/hwmon/Module.symvers
  186. --- linux-2.6.35/drivers/hwmon/Module.symvers   1970-01-01 01:00:00.000000000 +0100
  187. +++ linux-2.6.35-MacbookAir/drivers/hwmon/Module.symvers        2010-10-23 07:23:13.500291002 +0200
  188. @@ -0,0 +1,9 @@
  189. +0x6c33e494     lis3lv02d_joystick_disable      drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  190. +0x3c313751     lis3_dev        drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  191. +0x3bfe0261     lis3lv02d_init_device   drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  192. +0xe6af28c8     lis3lv02d_joystick_enable       drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  193. +0xbf3e2036     lis3lv02d_poweron       drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  194. +0x7f2fdb99     lis3lv02d_poweroff      drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  195. +0x0903c239     vid_from_reg    drivers/hwmon/hwmon-vid EXPORT_SYMBOL
  196. +0xef1c781c     vid_which_vrm   drivers/hwmon/hwmon-vid EXPORT_SYMBOL
  197. +0x8af65828     lis3lv02d_remove_fs     drivers/hwmon/lis3lv02d EXPORT_SYMBOL_GPL
  198. diff -uNr linux-2.6.35/drivers/input/mouse/bcm5974.c linux-2.6.35-MacbookAir/drivers/input/mouse/bcm5974.c
  199. --- linux-2.6.35/drivers/input/mouse/bcm5974.c  2010-10-23 06:59:31.000000000 +0200
  200. +++ linux-2.6.35-MacbookAir/drivers/input/mouse/bcm5974.c       2010-10-24 07:38:15.795679002 +0200
  201. @@ -55,6 +55,14 @@
  202.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI   0x0236
  203.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_ISO    0x0237
  204.  #define USB_DEVICE_ID_APPLE_WELLSPRING3_JIS    0x0238
  205. +/* MacbookAir3,1 (unibody), aka wellspring4 */
  206. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI   0x0242
  207. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_ISO    0x0243
  208. +#define USB_DEVICE_ID_APPLE_WELLSPRING4_JIS    0x0244
  209. +/* MacbookAir3,2 (unibody), aka wellspring5 */
  210. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI   0x023f
  211. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_ISO    0x0240
  212. +#define USB_DEVICE_ID_APPLE_WELLSPRING5_JIS    0x0241
  213.  
  214.  #define BCM5974_DEVICE(prod) {                                 \
  215.         .match_flags = (USB_DEVICE_ID_MATCH_DEVICE |            \
  216. @@ -80,6 +88,14 @@
  217.         BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI),
  218.         BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING3_ISO),
  219.         BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING3_JIS),
  220. +       /* MacbookAir3,1 */
  221. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI),
  222. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING4_ISO),
  223. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING4_JIS),
  224. +       /* MacbookAir3,2 */
  225. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI),
  226. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_ISO),
  227. +       BCM5974_DEVICE(USB_DEVICE_ID_APPLE_WELLSPRING5_JIS),
  228.         /* Terminating entry */
  229.         {}
  230.  };
  231. @@ -229,6 +245,30 @@
  232.                 HAS_INTEGRATED_BUTTON,
  233.                 0x84, sizeof(struct bt_data),
  234.                 0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS,
  235. +               { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 300 },
  236. +               { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 },
  237. +               { DIM_X, DIM_X / SN_COORD, -4460, 5166 },
  238. +               { DIM_Y, DIM_Y / SN_COORD, -75, 6700 }
  239. +       },
  240. +       {
  241. +               USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI,
  242. +               USB_DEVICE_ID_APPLE_WELLSPRING4_ISO,
  243. +               USB_DEVICE_ID_APPLE_WELLSPRING4_JIS,
  244. +               HAS_INTEGRATED_BUTTON,
  245. +               0x84, sizeof(struct bt_data),
  246. +               0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS,
  247. +               { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 300 },
  248. +               { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 },
  249. +               { DIM_X, DIM_X / SN_COORD, -4460, 5166 },
  250. +               { DIM_Y, DIM_Y / SN_COORD, -75, 6700 }
  251. +       },
  252. +       {
  253. +               USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI,
  254. +               USB_DEVICE_ID_APPLE_WELLSPRING5_ISO,
  255. +               USB_DEVICE_ID_APPLE_WELLSPRING5_JIS,
  256. +               HAS_INTEGRATED_BUTTON,
  257. +               0x84, sizeof(struct bt_data),
  258. +               0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS,
  259.                 { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 300 },
  260.                 { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 },
  261.                 { DIM_X, DIM_X / SN_COORD, -4460, 5166 },
RAW Paste Data
Top