int count = 0;
int i;
- --- /* non-HID_GENERIC single touch input doesn't call this routine */
- --- if ((touch_max == 1) && (wacom->features.type == HID_GENERIC))
- --- return wacom->hid_data.tipswitch &&
+ ++++ if (!touch_max)
+ ++++ return 0;
+ ++++
-- -- /* non-HID_GENERIC single touch input doesn't call this routine */
-- -- if ((touch_max == 1) && (wacom->features.type == HID_GENERIC))
-- -- return wacom->hid_data.tipswitch &&
++++++++ if (touch_max == 1)
++++++++ return test_bit(BTN_TOUCH, input->key) &&
!wacom->shared->stylus_in_proximity;
for (i = 0; i < input->mt->num_slots; i++) {