@@ -2300,6 +2300,8 @@ void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
2300
2300
break ;
2301
2301
2302
2302
case BAMBOO_PT :
2303
+ case BAMBOO_PEN :
2304
+ case BAMBOO_TOUCH :
2303
2305
case INTUOSHT :
2304
2306
if (wacom_wac -> data [0 ] == WACOM_REPORT_USB )
2305
2307
sync = wacom_status_irq (wacom_wac , len );
@@ -2387,9 +2389,8 @@ void wacom_setup_device_quirks(struct wacom *wacom)
2387
2389
2388
2390
/* The pen and pad share the same interface on most devices */
2389
2391
if (features -> type == GRAPHIRE_BT || features -> type == WACOM_G4 ||
2390
- features -> type == DTUS || features -> type == WACOM_MO ||
2391
- (features -> type >= INTUOS3S && features -> type <= WACOM_13HD &&
2392
- features -> type != INTUOSHT )) {
2392
+ features -> type == DTUS ||
2393
+ (features -> type >= INTUOS3S && features -> type <= WACOM_MO )) {
2393
2394
if (features -> device_type & WACOM_DEVICETYPE_PEN )
2394
2395
features -> device_type |= WACOM_DEVICETYPE_PAD ;
2395
2396
}
@@ -2406,12 +2407,12 @@ void wacom_setup_device_quirks(struct wacom *wacom)
2406
2407
* interface (PacketSize of WACOM_PKGLEN_BBTOUCH3), override the
2407
2408
* tablet values.
2408
2409
*/
2409
- if ((features -> type >= INTUOS5S && features -> type <= INTUOSHT ) ||
2410
- (features -> type = = BAMBOO_PT )) {
2410
+ if ((features -> type >= INTUOS5S && features -> type <= INTUOSPL ) ||
2411
+ (features -> type >= INTUOSHT && features -> type < = BAMBOO_PT )) {
2411
2412
if (features -> pktlen == WACOM_PKGLEN_BBTOUCH3 ) {
2412
2413
if (features -> touch_max )
2413
2414
features -> device_type |= WACOM_DEVICETYPE_TOUCH ;
2414
- if (features -> type == BAMBOO_PT || features -> type == INTUOSHT )
2415
+ if (features -> type >= INTUOSHT || features -> type <= BAMBOO_PT )
2415
2416
features -> device_type |= WACOM_DEVICETYPE_PAD ;
2416
2417
2417
2418
features -> x_max = 4096 ;
@@ -2598,6 +2599,7 @@ int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
2598
2599
2599
2600
case INTUOSHT :
2600
2601
case BAMBOO_PT :
2602
+ case BAMBOO_PEN :
2601
2603
__clear_bit (ABS_MISC , input_dev -> absbit );
2602
2604
2603
2605
__set_bit (INPUT_PROP_POINTER , input_dev -> propbit );
@@ -2693,6 +2695,7 @@ int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
2693
2695
/* fall through */
2694
2696
2695
2697
case BAMBOO_PT :
2698
+ case BAMBOO_TOUCH :
2696
2699
if (features -> pktlen == WACOM_PKGLEN_BBTOUCH3 ) {
2697
2700
input_set_abs_params (input_dev ,
2698
2701
ABS_MT_TOUCH_MAJOR ,
@@ -2845,6 +2848,7 @@ int wacom_setup_pad_input_capabilities(struct input_dev *input_dev,
2845
2848
2846
2849
case INTUOSHT :
2847
2850
case BAMBOO_PT :
2851
+ case BAMBOO_TOUCH :
2848
2852
__clear_bit (ABS_MISC , input_dev -> absbit );
2849
2853
2850
2854
__set_bit (BTN_LEFT , input_dev -> keybit );
@@ -3235,11 +3239,10 @@ static const struct wacom_features wacom_features_0x47 =
3235
3239
{ "Wacom Intuos2 6x8" , 20320 , 16240 , 1023 , 31 ,
3236
3240
INTUOS , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3237
3241
static const struct wacom_features wacom_features_0x84 =
3238
- { "Wacom Wireless Receiver" , 0 , 0 , 0 , 0 ,
3239
- WIRELESS , 0 , 0 , .touch_max = 16 };
3242
+ { "Wacom Wireless Receiver" , .type = WIRELESS , .touch_max = 16 };
3240
3243
static const struct wacom_features wacom_features_0xD0 =
3241
3244
{ "Wacom Bamboo 2FG" , 14720 , 9200 , 1023 , 31 ,
3242
- BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 2 };
3245
+ BAMBOO_TOUCH , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 2 };
3243
3246
static const struct wacom_features wacom_features_0xD1 =
3244
3247
{ "Wacom Bamboo 2FG 4x5" , 14720 , 9200 , 1023 , 31 ,
3245
3248
BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 2 };
@@ -3251,10 +3254,10 @@ static const struct wacom_features wacom_features_0xD3 =
3251
3254
BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 2 };
3252
3255
static const struct wacom_features wacom_features_0xD4 =
3253
3256
{ "Wacom Bamboo Pen" , 14720 , 9200 , 1023 , 31 ,
3254
- BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3257
+ BAMBOO_PEN , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3255
3258
static const struct wacom_features wacom_features_0xD5 =
3256
3259
{ "Wacom Bamboo Pen 6x8" , 21648 , 13700 , 1023 , 31 ,
3257
- BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3260
+ BAMBOO_PEN , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3258
3261
static const struct wacom_features wacom_features_0xD6 =
3259
3262
{ "Wacom BambooPT 2FG 4x5" , 14720 , 9200 , 1023 , 31 ,
3260
3263
BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 2 };
@@ -3281,7 +3284,7 @@ static const struct wacom_features wacom_features_0xDF =
3281
3284
BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES , .touch_max = 16 };
3282
3285
static const struct wacom_features wacom_features_0x300 =
3283
3286
{ "Wacom Bamboo One S" , 14720 , 9225 , 1023 , 31 ,
3284
- BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3287
+ BAMBOO_PEN , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
3285
3288
static const struct wacom_features wacom_features_0x301 =
3286
3289
{ "Wacom Bamboo One M" , 21648 , 13530 , 1023 , 31 ,
3287
3290
BAMBOO_PT , WACOM_INTUOS_RES , WACOM_INTUOS_RES };
@@ -3329,8 +3332,8 @@ static const struct wacom_features wacom_features_0x323 =
3329
3332
INTUOSHT , WACOM_INTUOS_RES , WACOM_INTUOS_RES ,
3330
3333
.check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
3331
3334
static const struct wacom_features wacom_features_0x331 =
3332
- { "Wacom Express Key Remote" , 0 , 0 , 0 , 0 ,
3333
- REMOTE , 0 , 0 , 18 , .check_for_hid_type = true,
3335
+ { "Wacom Express Key Remote" , . type = REMOTE ,
3336
+ . numbered_buttons = 18 , .check_for_hid_type = true,
3334
3337
.hid_type = HID_TYPE_USBNONE };
3335
3338
3336
3339
static const struct wacom_features wacom_features_HID_ANY_ID =
0 commit comments