aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2014-07-24 16:05:19 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-07-25 21:53:56 -0400
commit80befa93817b661193ba6423dfa9b69ffacd7e53 (patch)
tree9d417a01e87e0e3c6fcb680fd7a9c8e30f6a5644 /drivers/input
parent198fdee2829547ec4ff29bb56ea668790d23bc4b (diff)
Input: wacom - remove field pktlen declaration in the list of devices
pktlen is now overwritten by the driver directly by reading the hid report descriptor. There is no need to declare it statically. We also move down the position of the field in the struct so that we can keep the current declaration of Wacom devices. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Reviewed-by: Jason Gerecke <killertofu@gmail.com> Tested-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/tablet/wacom_wac.c514
-rw-r--r--drivers/input/tablet/wacom_wac.h2
2 files changed, 247 insertions, 269 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 1c95ce78d749..15b0132265e3 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -2012,418 +2012,396 @@ int wacom_setup_pad_input_capabilities(struct input_dev *input_dev,
2012} 2012}
2013 2013
2014static const struct wacom_features wacom_features_0x00 = 2014static const struct wacom_features wacom_features_0x00 =
2015 { "Wacom Penpartner", WACOM_PKGLEN_PENPRTN, 5040, 3780, 255, 2015 { "Wacom Penpartner", 5040, 3780, 255, 0,
2016 0, PENPARTNER, WACOM_PENPRTN_RES, WACOM_PENPRTN_RES }; 2016 PENPARTNER, WACOM_PENPRTN_RES, WACOM_PENPRTN_RES };
2017static const struct wacom_features wacom_features_0x10 = 2017static const struct wacom_features wacom_features_0x10 =
2018 { "Wacom Graphire", WACOM_PKGLEN_GRAPHIRE, 10206, 7422, 511, 2018 { "Wacom Graphire", 10206, 7422, 511, 63,
2019 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2019 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2020static const struct wacom_features wacom_features_0x11 = 2020static const struct wacom_features wacom_features_0x11 =
2021 { "Wacom Graphire2 4x5", WACOM_PKGLEN_GRAPHIRE, 10206, 7422, 511, 2021 { "Wacom Graphire2 4x5", 10206, 7422, 511, 63,
2022 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2022 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2023static const struct wacom_features wacom_features_0x12 = 2023static const struct wacom_features wacom_features_0x12 =
2024 { "Wacom Graphire2 5x7", WACOM_PKGLEN_GRAPHIRE, 13918, 10206, 511, 2024 { "Wacom Graphire2 5x7", 13918, 10206, 511, 63,
2025 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2025 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2026static const struct wacom_features wacom_features_0x13 = 2026static const struct wacom_features wacom_features_0x13 =
2027 { "Wacom Graphire3", WACOM_PKGLEN_GRAPHIRE, 10208, 7424, 511, 2027 { "Wacom Graphire3", 10208, 7424, 511, 63,
2028 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2028 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2029static const struct wacom_features wacom_features_0x14 = 2029static const struct wacom_features wacom_features_0x14 =
2030 { "Wacom Graphire3 6x8", WACOM_PKGLEN_GRAPHIRE, 16704, 12064, 511, 2030 { "Wacom Graphire3 6x8", 16704, 12064, 511, 63,
2031 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2031 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2032static const struct wacom_features wacom_features_0x15 = 2032static const struct wacom_features wacom_features_0x15 =
2033 { "Wacom Graphire4 4x5", WACOM_PKGLEN_GRAPHIRE, 10208, 7424, 511, 2033 { "Wacom Graphire4 4x5", 10208, 7424, 511, 63,
2034 63, WACOM_G4, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2034 WACOM_G4, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2035static const struct wacom_features wacom_features_0x16 = 2035static const struct wacom_features wacom_features_0x16 =
2036 { "Wacom Graphire4 6x8", WACOM_PKGLEN_GRAPHIRE, 16704, 12064, 511, 2036 { "Wacom Graphire4 6x8", 16704, 12064, 511, 63,
2037 63, WACOM_G4, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2037 WACOM_G4, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2038static const struct wacom_features wacom_features_0x17 = 2038static const struct wacom_features wacom_features_0x17 =
2039 { "Wacom BambooFun 4x5", WACOM_PKGLEN_BBFUN, 14760, 9225, 511, 2039 { "Wacom BambooFun 4x5", 14760, 9225, 511, 63,
2040 63, WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2040 WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2041static const struct wacom_features wacom_features_0x18 = 2041static const struct wacom_features wacom_features_0x18 =
2042 { "Wacom BambooFun 6x8", WACOM_PKGLEN_BBFUN, 21648, 13530, 511, 2042 { "Wacom BambooFun 6x8", 21648, 13530, 511, 63,
2043 63, WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2043 WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2044static const struct wacom_features wacom_features_0x19 = 2044static const struct wacom_features wacom_features_0x19 =
2045 { "Wacom Bamboo1 Medium", WACOM_PKGLEN_GRAPHIRE, 16704, 12064, 511, 2045 { "Wacom Bamboo1 Medium", 16704, 12064, 511, 63,
2046 63, GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES }; 2046 GRAPHIRE, WACOM_GRAPHIRE_RES, WACOM_GRAPHIRE_RES };
2047static const struct wacom_features wacom_features_0x60 = 2047static const struct wacom_features wacom_features_0x60 =
2048 { "Wacom Volito", WACOM_PKGLEN_GRAPHIRE, 5104, 3712, 511, 2048 { "Wacom Volito", 5104, 3712, 511, 63,
2049 63, GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES }; 2049 GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES };
2050static const struct wacom_features wacom_features_0x61 = 2050static const struct wacom_features wacom_features_0x61 =
2051 { "Wacom PenStation2", WACOM_PKGLEN_GRAPHIRE, 3250, 2320, 255, 2051 { "Wacom PenStation2", 3250, 2320, 255, 63,
2052 63, GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES }; 2052 GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES };
2053static const struct wacom_features wacom_features_0x62 = 2053static const struct wacom_features wacom_features_0x62 =
2054 { "Wacom Volito2 4x5", WACOM_PKGLEN_GRAPHIRE, 5104, 3712, 511, 2054 { "Wacom Volito2 4x5", 5104, 3712, 511, 63,
2055 63, GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES }; 2055 GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES };
2056static const struct wacom_features wacom_features_0x63 = 2056static const struct wacom_features wacom_features_0x63 =
2057 { "Wacom Volito2 2x3", WACOM_PKGLEN_GRAPHIRE, 3248, 2320, 511, 2057 { "Wacom Volito2 2x3", 3248, 2320, 511, 63,
2058 63, GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES }; 2058 GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES };
2059static const struct wacom_features wacom_features_0x64 = 2059static const struct wacom_features wacom_features_0x64 =
2060 { "Wacom PenPartner2", WACOM_PKGLEN_GRAPHIRE, 3250, 2320, 511, 2060 { "Wacom PenPartner2", 3250, 2320, 511, 63,
2061 63, GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES }; 2061 GRAPHIRE, WACOM_VOLITO_RES, WACOM_VOLITO_RES };
2062static const struct wacom_features wacom_features_0x65 = 2062static const struct wacom_features wacom_features_0x65 =
2063 { "Wacom Bamboo", WACOM_PKGLEN_BBFUN, 14760, 9225, 511, 2063 { "Wacom Bamboo", 14760, 9225, 511, 63,
2064 63, WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2064 WACOM_MO, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2065static const struct wacom_features wacom_features_0x69 = 2065static const struct wacom_features wacom_features_0x69 =
2066 { "Wacom Bamboo1", WACOM_PKGLEN_GRAPHIRE, 5104, 3712, 511, 2066 { "Wacom Bamboo1", 5104, 3712, 511, 63,
2067 63, GRAPHIRE, WACOM_PENPRTN_RES, WACOM_PENPRTN_RES }; 2067 GRAPHIRE, WACOM_PENPRTN_RES, WACOM_PENPRTN_RES };
2068static const struct wacom_features wacom_features_0x6A = 2068static const struct wacom_features wacom_features_0x6A =
2069 { "Wacom Bamboo1 4x6", WACOM_PKGLEN_GRAPHIRE, 14760, 9225, 1023, 2069 { "Wacom Bamboo1 4x6", 14760, 9225, 1023, 63,
2070 63, GRAPHIRE, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2070 GRAPHIRE, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2071static const struct wacom_features wacom_features_0x6B = 2071static const struct wacom_features wacom_features_0x6B =
2072 { "Wacom Bamboo1 5x8", WACOM_PKGLEN_GRAPHIRE, 21648, 13530, 1023, 2072 { "Wacom Bamboo1 5x8", 21648, 13530, 1023, 63,
2073 63, GRAPHIRE, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2073 GRAPHIRE, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2074static const struct wacom_features wacom_features_0x20 = 2074static const struct wacom_features wacom_features_0x20 =
2075 { "Wacom Intuos 4x5", WACOM_PKGLEN_INTUOS, 12700, 10600, 1023, 2075 { "Wacom Intuos 4x5", 12700, 10600, 1023, 31,
2076 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2076 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2077static const struct wacom_features wacom_features_0x21 = 2077static const struct wacom_features wacom_features_0x21 =
2078 { "Wacom Intuos 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 2078 { "Wacom Intuos 6x8", 20320, 16240, 1023, 31,
2079 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2079 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2080static const struct wacom_features wacom_features_0x22 = 2080static const struct wacom_features wacom_features_0x22 =
2081 { "Wacom Intuos 9x12", WACOM_PKGLEN_INTUOS, 30480, 24060, 1023, 2081 { "Wacom Intuos 9x12", 30480, 24060, 1023, 31,
2082 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2082 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2083static const struct wacom_features wacom_features_0x23 = 2083static const struct wacom_features wacom_features_0x23 =
2084 { "Wacom Intuos 12x12", WACOM_PKGLEN_INTUOS, 30480, 31680, 1023, 2084 { "Wacom Intuos 12x12", 30480, 31680, 1023, 31,
2085 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2085 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2086static const struct wacom_features wacom_features_0x24 = 2086static const struct wacom_features wacom_features_0x24 =
2087 { "Wacom Intuos 12x18", WACOM_PKGLEN_INTUOS, 45720, 31680, 1023, 2087 { "Wacom Intuos 12x18", 45720, 31680, 1023, 31,
2088 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2088 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2089static const struct wacom_features wacom_features_0x30 = 2089static const struct wacom_features wacom_features_0x30 =
2090 { "Wacom PL400", WACOM_PKGLEN_GRAPHIRE, 5408, 4056, 255, 2090 { "Wacom PL400", 5408, 4056, 255, 0,
2091 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2091 PL, WACOM_PL_RES, WACOM_PL_RES };
2092static const struct wacom_features wacom_features_0x31 = 2092static const struct wacom_features wacom_features_0x31 =
2093 { "Wacom PL500", WACOM_PKGLEN_GRAPHIRE, 6144, 4608, 255, 2093 { "Wacom PL500", 6144, 4608, 255, 0,
2094 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2094 PL, WACOM_PL_RES, WACOM_PL_RES };
2095static const struct wacom_features wacom_features_0x32 = 2095static const struct wacom_features wacom_features_0x32 =
2096 { "Wacom PL600", WACOM_PKGLEN_GRAPHIRE, 6126, 4604, 255, 2096 { "Wacom PL600", 6126, 4604, 255, 0,
2097 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2097 PL, WACOM_PL_RES, WACOM_PL_RES };
2098static const struct wacom_features wacom_features_0x33 = 2098static const struct wacom_features wacom_features_0x33 =
2099 { "Wacom PL600SX", WACOM_PKGLEN_GRAPHIRE, 6260, 5016, 255, 2099 { "Wacom PL600SX", 6260, 5016, 255, 0,
2100 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2100 PL, WACOM_PL_RES, WACOM_PL_RES };
2101static const struct wacom_features wacom_features_0x34 = 2101static const struct wacom_features wacom_features_0x34 =
2102 { "Wacom PL550", WACOM_PKGLEN_GRAPHIRE, 6144, 4608, 511, 2102 { "Wacom PL550", 6144, 4608, 511, 0,
2103 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2103 PL, WACOM_PL_RES, WACOM_PL_RES };
2104static const struct wacom_features wacom_features_0x35 = 2104static const struct wacom_features wacom_features_0x35 =
2105 { "Wacom PL800", WACOM_PKGLEN_GRAPHIRE, 7220, 5780, 511, 2105 { "Wacom PL800", 7220, 5780, 511, 0,
2106 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2106 PL, WACOM_PL_RES, WACOM_PL_RES };
2107static const struct wacom_features wacom_features_0x37 = 2107static const struct wacom_features wacom_features_0x37 =
2108 { "Wacom PL700", WACOM_PKGLEN_GRAPHIRE, 6758, 5406, 511, 2108 { "Wacom PL700", 6758, 5406, 511, 0,
2109 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2109 PL, WACOM_PL_RES, WACOM_PL_RES };
2110static const struct wacom_features wacom_features_0x38 = 2110static const struct wacom_features wacom_features_0x38 =
2111 { "Wacom PL510", WACOM_PKGLEN_GRAPHIRE, 6282, 4762, 511, 2111 { "Wacom PL510", 6282, 4762, 511, 0,
2112 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2112 PL, WACOM_PL_RES, WACOM_PL_RES };
2113static const struct wacom_features wacom_features_0x39 = 2113static const struct wacom_features wacom_features_0x39 =
2114 { "Wacom DTU710", WACOM_PKGLEN_GRAPHIRE, 34080, 27660, 511, 2114 { "Wacom DTU710", 34080, 27660, 511, 0,
2115 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2115 PL, WACOM_PL_RES, WACOM_PL_RES };
2116static const struct wacom_features wacom_features_0xC4 = 2116static const struct wacom_features wacom_features_0xC4 =
2117 { "Wacom DTF521", WACOM_PKGLEN_GRAPHIRE, 6282, 4762, 511, 2117 { "Wacom DTF521", 6282, 4762, 511, 0,
2118 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2118 PL, WACOM_PL_RES, WACOM_PL_RES };
2119static const struct wacom_features wacom_features_0xC0 = 2119static const struct wacom_features wacom_features_0xC0 =
2120 { "Wacom DTF720", WACOM_PKGLEN_GRAPHIRE, 6858, 5506, 511, 2120 { "Wacom DTF720", 6858, 5506, 511, 0,
2121 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2121 PL, WACOM_PL_RES, WACOM_PL_RES };
2122static const struct wacom_features wacom_features_0xC2 = 2122static const struct wacom_features wacom_features_0xC2 =
2123 { "Wacom DTF720a", WACOM_PKGLEN_GRAPHIRE, 6858, 5506, 511, 2123 { "Wacom DTF720a", 6858, 5506, 511, 0,
2124 0, PL, WACOM_PL_RES, WACOM_PL_RES }; 2124 PL, WACOM_PL_RES, WACOM_PL_RES };
2125static const struct wacom_features wacom_features_0x03 = 2125static const struct wacom_features wacom_features_0x03 =
2126 { "Wacom Cintiq Partner", WACOM_PKGLEN_GRAPHIRE, 20480, 15360, 511, 2126 { "Wacom Cintiq Partner", 20480, 15360, 511, 0,
2127 0, PTU, WACOM_PL_RES, WACOM_PL_RES }; 2127 PTU, WACOM_PL_RES, WACOM_PL_RES };
2128static const struct wacom_features wacom_features_0x41 = 2128static const struct wacom_features wacom_features_0x41 =
2129 { "Wacom Intuos2 4x5", WACOM_PKGLEN_INTUOS, 12700, 10600, 1023, 2129 { "Wacom Intuos2 4x5", 12700, 10600, 1023, 31,
2130 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2130 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2131static const struct wacom_features wacom_features_0x42 = 2131static const struct wacom_features wacom_features_0x42 =
2132 { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 2132 { "Wacom Intuos2 6x8", 20320, 16240, 1023, 31,
2133 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2133 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2134static const struct wacom_features wacom_features_0x43 = 2134static const struct wacom_features wacom_features_0x43 =
2135 { "Wacom Intuos2 9x12", WACOM_PKGLEN_INTUOS, 30480, 24060, 1023, 2135 { "Wacom Intuos2 9x12", 30480, 24060, 1023, 31,
2136 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2136 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2137static const struct wacom_features wacom_features_0x44 = 2137static const struct wacom_features wacom_features_0x44 =
2138 { "Wacom Intuos2 12x12", WACOM_PKGLEN_INTUOS, 30480, 31680, 1023, 2138 { "Wacom Intuos2 12x12", 30480, 31680, 1023, 31,
2139 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2139 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2140static const struct wacom_features wacom_features_0x45 = 2140static const struct wacom_features wacom_features_0x45 =
2141 { "Wacom Intuos2 12x18", WACOM_PKGLEN_INTUOS, 45720, 31680, 1023, 2141 { "Wacom Intuos2 12x18", 45720, 31680, 1023, 31,
2142 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2142 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2143static const struct wacom_features wacom_features_0xB0 = 2143static const struct wacom_features wacom_features_0xB0 =
2144 { "Wacom Intuos3 4x5", WACOM_PKGLEN_INTUOS, 25400, 20320, 1023, 2144 { "Wacom Intuos3 4x5", 25400, 20320, 1023, 63,
2145 63, INTUOS3S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2145 INTUOS3S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2146static const struct wacom_features wacom_features_0xB1 = 2146static const struct wacom_features wacom_features_0xB1 =
2147 { "Wacom Intuos3 6x8", WACOM_PKGLEN_INTUOS, 40640, 30480, 1023, 2147 { "Wacom Intuos3 6x8", 40640, 30480, 1023, 63,
2148 63, INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2148 INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2149static const struct wacom_features wacom_features_0xB2 = 2149static const struct wacom_features wacom_features_0xB2 =
2150 { "Wacom Intuos3 9x12", WACOM_PKGLEN_INTUOS, 60960, 45720, 1023, 2150 { "Wacom Intuos3 9x12", 60960, 45720, 1023, 63,
2151 63, INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2151 INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2152static const struct wacom_features wacom_features_0xB3 = 2152static const struct wacom_features wacom_features_0xB3 =
2153 { "Wacom Intuos3 12x12", WACOM_PKGLEN_INTUOS, 60960, 60960, 1023, 2153 { "Wacom Intuos3 12x12", 60960, 60960, 1023, 63,
2154 63, INTUOS3L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2154 INTUOS3L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2155static const struct wacom_features wacom_features_0xB4 = 2155static const struct wacom_features wacom_features_0xB4 =
2156 { "Wacom Intuos3 12x19", WACOM_PKGLEN_INTUOS, 97536, 60960, 1023, 2156 { "Wacom Intuos3 12x19", 97536, 60960, 1023, 63,
2157 63, INTUOS3L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2157 INTUOS3L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2158static const struct wacom_features wacom_features_0xB5 = 2158static const struct wacom_features wacom_features_0xB5 =
2159 { "Wacom Intuos3 6x11", WACOM_PKGLEN_INTUOS, 54204, 31750, 1023, 2159 { "Wacom Intuos3 6x11", 54204, 31750, 1023, 63,
2160 63, INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2160 INTUOS3, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2161static const struct wacom_features wacom_features_0xB7 = 2161static const struct wacom_features wacom_features_0xB7 =
2162 { "Wacom Intuos3 4x6", WACOM_PKGLEN_INTUOS, 31496, 19685, 1023, 2162 { "Wacom Intuos3 4x6", 31496, 19685, 1023, 63,
2163 63, INTUOS3S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2163 INTUOS3S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2164static const struct wacom_features wacom_features_0xB8 = 2164static const struct wacom_features wacom_features_0xB8 =
2165 { "Wacom Intuos4 4x6", WACOM_PKGLEN_INTUOS, 31496, 19685, 2047, 2165 { "Wacom Intuos4 4x6", 31496, 19685, 2047, 63,
2166 63, INTUOS4S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2166 INTUOS4S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2167static const struct wacom_features wacom_features_0xB9 = 2167static const struct wacom_features wacom_features_0xB9 =
2168 { "Wacom Intuos4 6x9", WACOM_PKGLEN_INTUOS, 44704, 27940, 2047, 2168 { "Wacom Intuos4 6x9", 44704, 27940, 2047, 63,
2169 63, INTUOS4, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2169 INTUOS4, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2170static const struct wacom_features wacom_features_0xBA = 2170static const struct wacom_features wacom_features_0xBA =
2171 { "Wacom Intuos4 8x13", WACOM_PKGLEN_INTUOS, 65024, 40640, 2047, 2171 { "Wacom Intuos4 8x13", 65024, 40640, 2047, 63,
2172 63, INTUOS4L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2172 INTUOS4L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2173static const struct wacom_features wacom_features_0xBB = 2173static const struct wacom_features wacom_features_0xBB =
2174 { "Wacom Intuos4 12x19", WACOM_PKGLEN_INTUOS, 97536, 60960, 2047, 2174 { "Wacom Intuos4 12x19", 97536, 60960, 2047, 63,
2175 63, INTUOS4L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2175 INTUOS4L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2176static const struct wacom_features wacom_features_0xBC = 2176static const struct wacom_features wacom_features_0xBC =
2177 { "Wacom Intuos4 WL", WACOM_PKGLEN_INTUOS, 40640, 25400, 2047, 2177 { "Wacom Intuos4 WL", 40640, 25400, 2047, 63,
2178 63, INTUOS4, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2178 INTUOS4, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2179static const struct wacom_features wacom_features_0x26 = 2179static const struct wacom_features wacom_features_0x26 =
2180 { "Wacom Intuos5 touch S", WACOM_PKGLEN_INTUOS, 31496, 19685, 2047, 2180 { "Wacom Intuos5 touch S", 31496, 19685, 2047, 63,
2181 63, INTUOS5S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2181 INTUOS5S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16 };
2182 .touch_max = 16 };
2183static const struct wacom_features wacom_features_0x27 = 2182static const struct wacom_features wacom_features_0x27 =
2184 { "Wacom Intuos5 touch M", WACOM_PKGLEN_INTUOS, 44704, 27940, 2047, 2183 { "Wacom Intuos5 touch M", 44704, 27940, 2047, 63,
2185 63, INTUOS5, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2184 INTUOS5, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16 };
2186 .touch_max = 16 };
2187static const struct wacom_features wacom_features_0x28 = 2185static const struct wacom_features wacom_features_0x28 =
2188 { "Wacom Intuos5 touch L", WACOM_PKGLEN_INTUOS, 65024, 40640, 2047, 2186 { "Wacom Intuos5 touch L", 65024, 40640, 2047, 63,
2189 63, INTUOS5L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2187 INTUOS5L, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16 };
2190 .touch_max = 16 };
2191static const struct wacom_features wacom_features_0x29 = 2188static const struct wacom_features wacom_features_0x29 =
2192 { "Wacom Intuos5 S", WACOM_PKGLEN_INTUOS, 31496, 19685, 2047, 2189 { "Wacom Intuos5 S", 31496, 19685, 2047, 63,
2193 63, INTUOS5S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2190 INTUOS5S, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2194static const struct wacom_features wacom_features_0x2A = 2191static const struct wacom_features wacom_features_0x2A =
2195 { "Wacom Intuos5 M", WACOM_PKGLEN_INTUOS, 44704, 27940, 2047, 2192 { "Wacom Intuos5 M", 44704, 27940, 2047, 63,
2196 63, INTUOS5, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2193 INTUOS5, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2197static const struct wacom_features wacom_features_0x314 = 2194static const struct wacom_features wacom_features_0x314 =
2198 { "Wacom Intuos Pro S", WACOM_PKGLEN_INTUOS, 31496, 19685, 2047, 2195 { "Wacom Intuos Pro S", 31496, 19685, 2047, 63,
2199 63, INTUOSPS, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2196 INTUOSPS, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16,
2200 .touch_max = 16,
2201 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2197 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2202static const struct wacom_features wacom_features_0x315 = 2198static const struct wacom_features wacom_features_0x315 =
2203 { "Wacom Intuos Pro M", WACOM_PKGLEN_INTUOS, 44704, 27940, 2047, 2199 { "Wacom Intuos Pro M", 44704, 27940, 2047, 63,
2204 63, INTUOSPM, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2200 INTUOSPM, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16,
2205 .touch_max = 16,
2206 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2201 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2207static const struct wacom_features wacom_features_0x317 = 2202static const struct wacom_features wacom_features_0x317 =
2208 { "Wacom Intuos Pro L", WACOM_PKGLEN_INTUOS, 65024, 40640, 2047, 2203 { "Wacom Intuos Pro L", 65024, 40640, 2047, 63,
2209 63, INTUOSPL, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 2204 INTUOSPL, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, .touch_max = 16,
2210 .touch_max = 16,
2211 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2205 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2212static const struct wacom_features wacom_features_0xF4 = 2206static const struct wacom_features wacom_features_0xF4 =
2213 { "Wacom Cintiq 24HD", WACOM_PKGLEN_INTUOS, 104280, 65400, 2047, 2207 { "Wacom Cintiq 24HD", 104280, 65400, 2047, 63,
2214 63, WACOM_24HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 }; 2208 WACOM_24HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 };
2215static const struct wacom_features wacom_features_0xF8 = 2209static const struct wacom_features wacom_features_0xF8 =
2216 { "Wacom Cintiq 24HD touch", WACOM_PKGLEN_INTUOS, 104280, 65400, 2047, /* Pen */ 2210 { "Wacom Cintiq 24HD touch", 104280, 65400, 2047, 63, /* Pen */
2217 63, WACOM_24HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200, 2211 WACOM_24HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200,
2218 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0xf6 }; 2212 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0xf6 };
2219static const struct wacom_features wacom_features_0xF6 = 2213static const struct wacom_features wacom_features_0xF6 =
2220 { "Wacom Cintiq 24HD touch", .type = WACOM_24HDT, /* Touch */ 2214 { "Wacom Cintiq 24HD touch", .type = WACOM_24HDT, /* Touch */
2221 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0xf8, .touch_max = 10, 2215 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0xf8, .touch_max = 10,
2222 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2216 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2223static const struct wacom_features wacom_features_0x3F = 2217static const struct wacom_features wacom_features_0x3F =
2224 { "Wacom Cintiq 21UX", WACOM_PKGLEN_INTUOS, 87200, 65600, 1023, 2218 { "Wacom Cintiq 21UX", 87200, 65600, 1023, 63,
2225 63, CINTIQ, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2219 CINTIQ, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2226static const struct wacom_features wacom_features_0xC5 = 2220static const struct wacom_features wacom_features_0xC5 =
2227 { "Wacom Cintiq 20WSX", WACOM_PKGLEN_INTUOS, 86680, 54180, 1023, 2221 { "Wacom Cintiq 20WSX", 86680, 54180, 1023, 63,
2228 63, WACOM_BEE, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2222 WACOM_BEE, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2229static const struct wacom_features wacom_features_0xC6 = 2223static const struct wacom_features wacom_features_0xC6 =
2230 { "Wacom Cintiq 12WX", WACOM_PKGLEN_INTUOS, 53020, 33440, 1023, 2224 { "Wacom Cintiq 12WX", 53020, 33440, 1023, 63,
2231 63, WACOM_BEE, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES }; 2225 WACOM_BEE, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES };
2232static const struct wacom_features wacom_features_0x304 = 2226static const struct wacom_features wacom_features_0x304 =
2233 { "Wacom Cintiq 13HD", WACOM_PKGLEN_INTUOS, 59352, 33648, 1023, 2227 { "Wacom Cintiq 13HD", 59352, 33648, 1023, 63,
2234 63, WACOM_13HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 }; 2228 WACOM_13HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 };
2235static const struct wacom_features wacom_features_0xC7 = 2229static const struct wacom_features wacom_features_0xC7 =
2236 { "Wacom DTU1931", WACOM_PKGLEN_GRAPHIRE, 37832, 30305, 511, 2230 { "Wacom DTU1931", 37832, 30305, 511, 0,
2237 0, PL, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2231 PL, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2238static const struct wacom_features wacom_features_0xCE = 2232static const struct wacom_features wacom_features_0xCE =
2239 { "Wacom DTU2231", WACOM_PKGLEN_GRAPHIRE, 47864, 27011, 511, 2233 { "Wacom DTU2231", 47864, 27011, 511, 0,
2240 0, DTU, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2234 DTU, WACOM_INTUOS_RES, WACOM_INTUOS_RES,
2241 .check_for_hid_type = true, .hid_type = HID_TYPE_USBMOUSE }; 2235 .check_for_hid_type = true, .hid_type = HID_TYPE_USBMOUSE };
2242static const struct wacom_features wacom_features_0xF0 = 2236static const struct wacom_features wacom_features_0xF0 =
2243 { "Wacom DTU1631", WACOM_PKGLEN_GRAPHIRE, 34623, 19553, 511, 2237 { "Wacom DTU1631", 34623, 19553, 511, 0,
2244 0, DTU, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2238 DTU, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2245static const struct wacom_features wacom_features_0xFB = 2239static const struct wacom_features wacom_features_0xFB =
2246 { "Wacom DTU1031", WACOM_PKGLEN_DTUS, 22096, 13960, 511, 2240 { "Wacom DTU1031", 22096, 13960, 511, 0,
2247 0, DTUS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2241 DTUS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2248static const struct wacom_features wacom_features_0x57 = 2242static const struct wacom_features wacom_features_0x57 =
2249 { "Wacom DTK2241", WACOM_PKGLEN_INTUOS, 95640, 54060, 2047, 2243 { "Wacom DTK2241", 95640, 54060, 2047, 63,
2250 63, DTK, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 }; 2244 DTK, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 };
2251static const struct wacom_features wacom_features_0x59 = /* Pen */ 2245static const struct wacom_features wacom_features_0x59 = /* Pen */
2252 { "Wacom DTH2242", WACOM_PKGLEN_INTUOS, 95640, 54060, 2047, 2246 { "Wacom DTH2242", 95640, 54060, 2047, 63,
2253 63, DTK, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200, 2247 DTK, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200,
2254 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5D }; 2248 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5D };
2255static const struct wacom_features wacom_features_0x5D = /* Touch */ 2249static const struct wacom_features wacom_features_0x5D = /* Touch */
2256 { "Wacom DTH2242", .type = WACOM_24HDT, 2250 { "Wacom DTH2242", .type = WACOM_24HDT,
2257 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x59, .touch_max = 10, 2251 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x59, .touch_max = 10,
2258 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2252 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2259static const struct wacom_features wacom_features_0xCC = 2253static const struct wacom_features wacom_features_0xCC =
2260 { "Wacom Cintiq 21UX2", WACOM_PKGLEN_INTUOS, 87000, 65400, 2047, 2254 { "Wacom Cintiq 21UX2", 87000, 65400, 2047, 63,
2261 63, WACOM_21UX2, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 }; 2255 WACOM_21UX2, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 };
2262static const struct wacom_features wacom_features_0xFA = 2256static const struct wacom_features wacom_features_0xFA =
2263 { "Wacom Cintiq 22HD", WACOM_PKGLEN_INTUOS, 95640, 54060, 2047, 2257 { "Wacom Cintiq 22HD", 95640, 54060, 2047, 63,
2264 63, WACOM_22HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 }; 2258 WACOM_22HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200 };
2265static const struct wacom_features wacom_features_0x5B = 2259static const struct wacom_features wacom_features_0x5B =
2266 { "Wacom Cintiq 22HDT", WACOM_PKGLEN_INTUOS, 95640, 54060, 2047, 2260 { "Wacom Cintiq 22HDT", 95640, 54060, 2047, 63,
2267 63, WACOM_22HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200, 2261 WACOM_22HD, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200,
2268 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5e }; 2262 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5e };
2269static const struct wacom_features wacom_features_0x5E = 2263static const struct wacom_features wacom_features_0x5E =
2270 { "Wacom Cintiq 22HDT", .type = WACOM_24HDT, 2264 { "Wacom Cintiq 22HDT", .type = WACOM_24HDT,
2271 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5b, .touch_max = 10, 2265 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x5b, .touch_max = 10,
2272 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2266 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2273static const struct wacom_features wacom_features_0x90 = 2267static const struct wacom_features wacom_features_0x90 =
2274 { "Wacom ISDv4 90", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2268 { "Wacom ISDv4 90", 26202, 16325, 255, 0,
2275 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2269 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2276static const struct wacom_features wacom_features_0x93 = 2270static const struct wacom_features wacom_features_0x93 =
2277 { "Wacom ISDv4 93", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2271 { "Wacom ISDv4 93", 26202, 16325, 255, 0,
2278 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2272 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2279static const struct wacom_features wacom_features_0x97 = 2273static const struct wacom_features wacom_features_0x97 =
2280 { "Wacom ISDv4 97", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 511, 2274 { "Wacom ISDv4 97", 26202, 16325, 511, 0,
2281 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2275 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2282static const struct wacom_features wacom_features_0x9A = 2276static const struct wacom_features wacom_features_0x9A =
2283 { "Wacom ISDv4 9A", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2277 { "Wacom ISDv4 9A", 26202, 16325, 255, 0,
2284 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2278 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2285static const struct wacom_features wacom_features_0x9F = 2279static const struct wacom_features wacom_features_0x9F =
2286 { "Wacom ISDv4 9F", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2280 { "Wacom ISDv4 9F", 26202, 16325, 255, 0,
2287 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2281 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2288static const struct wacom_features wacom_features_0xE2 = 2282static const struct wacom_features wacom_features_0xE2 =
2289 { "Wacom ISDv4 E2", WACOM_PKGLEN_TPC2FG, 26202, 16325, 255, 2283 { "Wacom ISDv4 E2", 26202, 16325, 255, 0,
2290 0, TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2284 TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2291 .touch_max = 2 };
2292static const struct wacom_features wacom_features_0xE3 = 2285static const struct wacom_features wacom_features_0xE3 =
2293 { "Wacom ISDv4 E3", WACOM_PKGLEN_TPC2FG, 26202, 16325, 255, 2286 { "Wacom ISDv4 E3", 26202, 16325, 255, 0,
2294 0, TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2287 TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2295 .touch_max = 2 };
2296static const struct wacom_features wacom_features_0xE5 = 2288static const struct wacom_features wacom_features_0xE5 =
2297 { "Wacom ISDv4 E5", WACOM_PKGLEN_MTOUCH, 26202, 16325, 255, 2289 { "Wacom ISDv4 E5", 26202, 16325, 255, 0,
2298 0, MTSCREEN, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2290 MTSCREEN, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2299static const struct wacom_features wacom_features_0xE6 = 2291static const struct wacom_features wacom_features_0xE6 =
2300 { "Wacom ISDv4 E6", WACOM_PKGLEN_TPC2FG, 27760, 15694, 255, 2292 { "Wacom ISDv4 E6", 27760, 15694, 255, 0,
2301 0, TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2293 TABLETPC2FG, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2302 .touch_max = 2 };
2303static const struct wacom_features wacom_features_0xEC = 2294static const struct wacom_features wacom_features_0xEC =
2304 { "Wacom ISDv4 EC", WACOM_PKGLEN_GRAPHIRE, 25710, 14500, 255, 2295 { "Wacom ISDv4 EC", 25710, 14500, 255, 0,
2305 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2296 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2306static const struct wacom_features wacom_features_0xED = 2297static const struct wacom_features wacom_features_0xED =
2307 { "Wacom ISDv4 ED", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2298 { "Wacom ISDv4 ED", 26202, 16325, 255, 0,
2308 0, TABLETPCE, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2299 TABLETPCE, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2309static const struct wacom_features wacom_features_0xEF = 2300static const struct wacom_features wacom_features_0xEF =
2310 { "Wacom ISDv4 EF", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2301 { "Wacom ISDv4 EF", 26202, 16325, 255, 0,
2311 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2302 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2312static const struct wacom_features wacom_features_0x100 = 2303static const struct wacom_features wacom_features_0x100 =
2313 { "Wacom ISDv4 100", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, 2304 { "Wacom ISDv4 100", 26202, 16325, 255, 0,
2314 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2305 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2315static const struct wacom_features wacom_features_0x101 = 2306static const struct wacom_features wacom_features_0x101 =
2316 { "Wacom ISDv4 101", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, 2307 { "Wacom ISDv4 101", 26202, 16325, 255, 0,
2317 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2308 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2318static const struct wacom_features wacom_features_0x10D = 2309static const struct wacom_features wacom_features_0x10D =
2319 { "Wacom ISDv4 10D", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, 2310 { "Wacom ISDv4 10D", 26202, 16325, 255, 0,
2320 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2311 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2321static const struct wacom_features wacom_features_0x10E = 2312static const struct wacom_features wacom_features_0x10E =
2322 { "Wacom ISDv4 10E", WACOM_PKGLEN_MTTPC, 27760, 15694, 255, 2313 { "Wacom ISDv4 10E", 27760, 15694, 255, 0,
2323 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2314 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2324static const struct wacom_features wacom_features_0x10F = 2315static const struct wacom_features wacom_features_0x10F =
2325 { "Wacom ISDv4 10F", WACOM_PKGLEN_MTTPC, 27760, 15694, 255, 2316 { "Wacom ISDv4 10F", 27760, 15694, 255, 0,
2326 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2317 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2327static const struct wacom_features wacom_features_0x116 = 2318static const struct wacom_features wacom_features_0x116 =
2328 { "Wacom ISDv4 116", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, 2319 { "Wacom ISDv4 116", 26202, 16325, 255, 0,
2329 0, TABLETPCE, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2320 TABLETPCE, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2330static const struct wacom_features wacom_features_0x4001 = 2321static const struct wacom_features wacom_features_0x4001 =
2331 { "Wacom ISDv4 4001", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, 2322 { "Wacom ISDv4 4001", 26202, 16325, 255, 0,
2332 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2323 MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2333static const struct wacom_features wacom_features_0x4004 = 2324static const struct wacom_features wacom_features_0x4004 =
2334 { "Wacom ISDv4 4004", WACOM_PKGLEN_MTTPC, 11060, 6220, 255, 2325 { "Wacom ISDv4 4004", 11060, 6220, 255, 0,
2335 0, MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2326 MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2336static const struct wacom_features wacom_features_0x5000 = 2327static const struct wacom_features wacom_features_0x5000 =
2337 { "Wacom ISDv4 5000", WACOM_PKGLEN_MTTPC, 27848, 15752, 1023, 2328 { "Wacom ISDv4 5000", 27848, 15752, 1023, 0,
2338 0, MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2329 MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2339static const struct wacom_features wacom_features_0x5002 = 2330static const struct wacom_features wacom_features_0x5002 =
2340 { "Wacom ISDv4 5002", WACOM_PKGLEN_MTTPC, 29576, 16724, 1023, 2331 { "Wacom ISDv4 5002", 29576, 16724, 1023, 0,
2341 0, MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2332 MTTPC_B, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2342static const struct wacom_features wacom_features_0x47 = 2333static const struct wacom_features wacom_features_0x47 =
2343 { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 2334 { "Wacom Intuos2 6x8", 20320, 16240, 1023, 31,
2344 31, INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2335 INTUOS, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2345static const struct wacom_features wacom_features_0x84 = 2336static const struct wacom_features wacom_features_0x84 =
2346 { "Wacom Wireless Receiver", WACOM_PKGLEN_WIRELESS, 0, 0, 0, 2337 { "Wacom Wireless Receiver", 0, 0, 0, 0,
2347 0, WIRELESS, 0, 0, .touch_max = 16 }; 2338 WIRELESS, 0, 0, .touch_max = 16 };
2348static const struct wacom_features wacom_features_0xD0 = 2339static const struct wacom_features wacom_features_0xD0 =
2349 { "Wacom Bamboo 2FG", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2340 { "Wacom Bamboo 2FG", 14720, 9200, 1023, 31,
2350 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2341 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2351 .touch_max = 2 };
2352static const struct wacom_features wacom_features_0xD1 = 2342static const struct wacom_features wacom_features_0xD1 =
2353 { "Wacom Bamboo 2FG 4x5", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2343 { "Wacom Bamboo 2FG 4x5", 14720, 9200, 1023, 31,
2354 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2344 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2355 .touch_max = 2 };
2356static const struct wacom_features wacom_features_0xD2 = 2345static const struct wacom_features wacom_features_0xD2 =
2357 { "Wacom Bamboo Craft", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2346 { "Wacom Bamboo Craft", 14720, 9200, 1023, 31,
2358 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2347 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2359 .touch_max = 2 };
2360static const struct wacom_features wacom_features_0xD3 = 2348static const struct wacom_features wacom_features_0xD3 =
2361 { "Wacom Bamboo 2FG 6x8", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 2349 { "Wacom Bamboo 2FG 6x8", 21648, 13700, 1023, 31,
2362 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2350 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2363 .touch_max = 2 };
2364static const struct wacom_features wacom_features_0xD4 = 2351static const struct wacom_features wacom_features_0xD4 =
2365 { "Wacom Bamboo Pen", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2352 { "Wacom Bamboo Pen", 14720, 9200, 1023, 31,
2366 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2353 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2367static const struct wacom_features wacom_features_0xD5 = 2354static const struct wacom_features wacom_features_0xD5 =
2368 { "Wacom Bamboo Pen 6x8", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 2355 { "Wacom Bamboo Pen 6x8", 21648, 13700, 1023, 31,
2369 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2356 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2370static const struct wacom_features wacom_features_0xD6 = 2357static const struct wacom_features wacom_features_0xD6 =
2371 { "Wacom BambooPT 2FG 4x5", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2358 { "Wacom BambooPT 2FG 4x5", 14720, 9200, 1023, 31,
2372 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2359 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2373 .touch_max = 2 };
2374static const struct wacom_features wacom_features_0xD7 = 2360static const struct wacom_features wacom_features_0xD7 =
2375 { "Wacom BambooPT 2FG Small", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2361 { "Wacom BambooPT 2FG Small", 14720, 9200, 1023, 31,
2376 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2362 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2377 .touch_max = 2 };
2378static const struct wacom_features wacom_features_0xD8 = 2363static const struct wacom_features wacom_features_0xD8 =
2379 { "Wacom Bamboo Comic 2FG", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 2364 { "Wacom Bamboo Comic 2FG", 21648, 13700, 1023, 31,
2380 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2365 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2381 .touch_max = 2 };
2382static const struct wacom_features wacom_features_0xDA = 2366static const struct wacom_features wacom_features_0xDA =
2383 { "Wacom Bamboo 2FG 4x5 SE", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 2367 { "Wacom Bamboo 2FG 4x5 SE", 14720, 9200, 1023, 31,
2384 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2368 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2385 .touch_max = 2 };
2386static const struct wacom_features wacom_features_0xDB = 2369static const struct wacom_features wacom_features_0xDB =
2387 { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 2370 { "Wacom Bamboo 2FG 6x8 SE", 21648, 13700, 1023, 31,
2388 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2371 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 2 };
2389 .touch_max = 2 };
2390static const struct wacom_features wacom_features_0xDD = 2372static const struct wacom_features wacom_features_0xDD =
2391 { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720, 9200, 1023, 2373 { "Wacom Bamboo Connect", 14720, 9200, 1023, 31,
2392 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2374 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2393static const struct wacom_features wacom_features_0xDE = 2375static const struct wacom_features wacom_features_0xDE =
2394 { "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN, 14720, 9200, 1023, 2376 { "Wacom Bamboo 16FG 4x5", 14720, 9200, 1023, 31,
2395 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2377 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16 };
2396 .touch_max = 16 };
2397static const struct wacom_features wacom_features_0xDF = 2378static const struct wacom_features wacom_features_0xDF =
2398 { "Wacom Bamboo 16FG 6x8", WACOM_PKGLEN_BBPEN, 21648, 13700, 1023, 2379 { "Wacom Bamboo 16FG 6x8", 21648, 13700, 1023, 31,
2399 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2380 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16 };
2400 .touch_max = 16 };
2401static const struct wacom_features wacom_features_0x300 = 2381static const struct wacom_features wacom_features_0x300 =
2402 { "Wacom Bamboo One S", WACOM_PKGLEN_BBPEN, 14720, 9225, 1023, 2382 { "Wacom Bamboo One S", 14720, 9225, 1023, 31,
2403 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2383 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2404static const struct wacom_features wacom_features_0x301 = 2384static const struct wacom_features wacom_features_0x301 =
2405 { "Wacom Bamboo One M", WACOM_PKGLEN_BBPEN, 21648, 13530, 1023, 2385 { "Wacom Bamboo One M", 21648, 13530, 1023, 31,
2406 31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2386 BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2407static const struct wacom_features wacom_features_0x302 = 2387static const struct wacom_features wacom_features_0x302 =
2408 { "Wacom Intuos PT S", WACOM_PKGLEN_BBPEN, 15200, 9500, 1023, 2388 { "Wacom Intuos PT S", 15200, 9500, 1023, 31,
2409 31, INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2389 INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16,
2410 .touch_max = 16,
2411 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2390 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2412static const struct wacom_features wacom_features_0x303 = 2391static const struct wacom_features wacom_features_0x303 =
2413 { "Wacom Intuos PT M", WACOM_PKGLEN_BBPEN, 21600, 13500, 1023, 2392 { "Wacom Intuos PT M", 21600, 13500, 1023, 31,
2414 31, INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2393 INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16,
2415 .touch_max = 16,
2416 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2394 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2417static const struct wacom_features wacom_features_0x30E = 2395static const struct wacom_features wacom_features_0x30E =
2418 { "Wacom Intuos S", WACOM_PKGLEN_BBPEN, 15200, 9500, 1023, 2396 { "Wacom Intuos S", 15200, 9500, 1023, 31,
2419 31, INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 2397 INTUOSHT, WACOM_INTUOS_RES, WACOM_INTUOS_RES,
2420 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE }; 2398 .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
2421static const struct wacom_features wacom_features_0x6004 = 2399static const struct wacom_features wacom_features_0x6004 =
2422 { "ISD-V4", WACOM_PKGLEN_GRAPHIRE, 12800, 8000, 255, 2400 { "ISD-V4", 12800, 8000, 255, 0,
2423 0, TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; 2401 TABLETPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
2424static const struct wacom_features wacom_features_0x0307 = 2402static const struct wacom_features wacom_features_0x0307 =
2425 { "Wacom ISDv5 307", WACOM_PKGLEN_INTUOS, 59352, 33648, 2047, 2403 { "Wacom ISDv5 307", 59352, 33648, 2047, 63,
2426 63, CINTIQ_HYBRID, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200, 2404 CINTIQ_HYBRID, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 200, 200,
2427 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x309 }; 2405 .oVid = USB_VENDOR_ID_WACOM, .oPid = 0x309 };
2428static const struct wacom_features wacom_features_0x0309 = 2406static const struct wacom_features wacom_features_0x0309 =
2429 { "Wacom ISDv5 309", .type = WACOM_24HDT, /* Touch */ 2407 { "Wacom ISDv5 309", .type = WACOM_24HDT, /* Touch */
diff --git a/drivers/input/tablet/wacom_wac.h b/drivers/input/tablet/wacom_wac.h
index 2a7612ae14a6..4c592475b237 100644
--- a/drivers/input/tablet/wacom_wac.h
+++ b/drivers/input/tablet/wacom_wac.h
@@ -114,7 +114,6 @@ enum {
114 114
115struct wacom_features { 115struct wacom_features {
116 const char *name; 116 const char *name;
117 int pktlen;
118 int x_max; 117 int x_max;
119 int y_max; 118 int y_max;
120 int pressure_max; 119 int pressure_max;
@@ -137,6 +136,7 @@ struct wacom_features {
137 unsigned touch_max; 136 unsigned touch_max;
138 int oVid; 137 int oVid;
139 int oPid; 138 int oPid;
139 int pktlen;
140 bool check_for_hid_type; 140 bool check_for_hid_type;
141 int hid_type; 141 int hid_type;
142}; 142};