Lines Matching refs:input

64 	input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_LEFT],  in wiimod_keys_in_keys()
66 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_RIGHT], in wiimod_keys_in_keys()
68 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_DOWN], in wiimod_keys_in_keys()
70 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_UP], in wiimod_keys_in_keys()
72 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_PLUS], in wiimod_keys_in_keys()
74 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_TWO], in wiimod_keys_in_keys()
76 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_ONE], in wiimod_keys_in_keys()
78 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_B], in wiimod_keys_in_keys()
80 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_A], in wiimod_keys_in_keys()
82 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_MINUS], in wiimod_keys_in_keys()
84 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_HOME], in wiimod_keys_in_keys()
86 input_sync(wdata->input); in wiimod_keys_in_keys()
94 set_bit(EV_KEY, wdata->input->evbit); in wiimod_keys_probe()
96 set_bit(wiimod_keys_map[i], wdata->input->keybit); in wiimod_keys_probe()
160 set_bit(FF_RUMBLE, wdata->input->ffbit); in wiimod_rumble_probe()
161 if (input_ff_create_memless(wdata->input, NULL, wiimod_rumble_play)) in wiimod_rumble_probe()
878 input_report_abs(wdata->extension.input, ABS_HAT0X, bx); in wiimod_nunchuk_in_ext()
879 input_report_abs(wdata->extension.input, ABS_HAT0Y, by); in wiimod_nunchuk_in_ext()
881 input_report_abs(wdata->extension.input, ABS_RX, x); in wiimod_nunchuk_in_ext()
882 input_report_abs(wdata->extension.input, ABS_RY, y); in wiimod_nunchuk_in_ext()
883 input_report_abs(wdata->extension.input, ABS_RZ, z); in wiimod_nunchuk_in_ext()
886 input_report_key(wdata->extension.input, in wiimod_nunchuk_in_ext()
889 input_report_key(wdata->extension.input, in wiimod_nunchuk_in_ext()
893 input_report_key(wdata->extension.input, in wiimod_nunchuk_in_ext()
896 input_report_key(wdata->extension.input, in wiimod_nunchuk_in_ext()
901 input_sync(wdata->extension.input); in wiimod_nunchuk_in_ext()
933 wdata->extension.input = input_allocate_device(); in wiimod_nunchuk_probe()
934 if (!wdata->extension.input) in wiimod_nunchuk_probe()
937 input_set_drvdata(wdata->extension.input, wdata); in wiimod_nunchuk_probe()
938 wdata->extension.input->open = wiimod_nunchuk_open; in wiimod_nunchuk_probe()
939 wdata->extension.input->close = wiimod_nunchuk_close; in wiimod_nunchuk_probe()
940 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_nunchuk_probe()
941 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_nunchuk_probe()
942 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_nunchuk_probe()
943 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_nunchuk_probe()
944 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_nunchuk_probe()
945 wdata->extension.input->name = WIIMOTE_NAME " Nunchuk"; in wiimod_nunchuk_probe()
947 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_nunchuk_probe()
950 wdata->extension.input->keybit); in wiimod_nunchuk_probe()
952 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_nunchuk_probe()
953 set_bit(ABS_HAT0X, wdata->extension.input->absbit); in wiimod_nunchuk_probe()
954 set_bit(ABS_HAT0Y, wdata->extension.input->absbit); in wiimod_nunchuk_probe()
955 input_set_abs_params(wdata->extension.input, in wiimod_nunchuk_probe()
957 input_set_abs_params(wdata->extension.input, in wiimod_nunchuk_probe()
959 set_bit(ABS_RX, wdata->extension.input->absbit); in wiimod_nunchuk_probe()
960 set_bit(ABS_RY, wdata->extension.input->absbit); in wiimod_nunchuk_probe()
961 set_bit(ABS_RZ, wdata->extension.input->absbit); in wiimod_nunchuk_probe()
962 input_set_abs_params(wdata->extension.input, in wiimod_nunchuk_probe()
964 input_set_abs_params(wdata->extension.input, in wiimod_nunchuk_probe()
966 input_set_abs_params(wdata->extension.input, in wiimod_nunchuk_probe()
969 ret = input_register_device(wdata->extension.input); in wiimod_nunchuk_probe()
976 input_free_device(wdata->extension.input); in wiimod_nunchuk_probe()
977 wdata->extension.input = NULL; in wiimod_nunchuk_probe()
984 if (!wdata->extension.input) in wiimod_nunchuk_remove()
987 input_unregister_device(wdata->extension.input); in wiimod_nunchuk_remove()
988 wdata->extension.input = NULL; in wiimod_nunchuk_remove()
1129 input_report_abs(wdata->extension.input, ABS_HAT1X, lx); in wiimod_classic_in_ext()
1130 input_report_abs(wdata->extension.input, ABS_HAT1Y, ly); in wiimod_classic_in_ext()
1131 input_report_abs(wdata->extension.input, ABS_HAT2X, rx - 0x20); in wiimod_classic_in_ext()
1132 input_report_abs(wdata->extension.input, ABS_HAT2Y, ry - 0x20); in wiimod_classic_in_ext()
1133 input_report_abs(wdata->extension.input, ABS_HAT3X, rt); in wiimod_classic_in_ext()
1134 input_report_abs(wdata->extension.input, ABS_HAT3Y, lt); in wiimod_classic_in_ext()
1136 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1139 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1142 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1145 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1148 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1151 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1154 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1157 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1160 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1163 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1166 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1171 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1174 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1179 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1182 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1186 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1189 input_report_key(wdata->extension.input, in wiimod_classic_in_ext()
1195 input_sync(wdata->extension.input); in wiimod_classic_in_ext()
1227 wdata->extension.input = input_allocate_device(); in wiimod_classic_probe()
1228 if (!wdata->extension.input) in wiimod_classic_probe()
1231 input_set_drvdata(wdata->extension.input, wdata); in wiimod_classic_probe()
1232 wdata->extension.input->open = wiimod_classic_open; in wiimod_classic_probe()
1233 wdata->extension.input->close = wiimod_classic_close; in wiimod_classic_probe()
1234 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_classic_probe()
1235 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_classic_probe()
1236 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_classic_probe()
1237 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_classic_probe()
1238 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_classic_probe()
1239 wdata->extension.input->name = WIIMOTE_NAME " Classic Controller"; in wiimod_classic_probe()
1241 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_classic_probe()
1244 wdata->extension.input->keybit); in wiimod_classic_probe()
1246 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_classic_probe()
1247 set_bit(ABS_HAT1X, wdata->extension.input->absbit); in wiimod_classic_probe()
1248 set_bit(ABS_HAT1Y, wdata->extension.input->absbit); in wiimod_classic_probe()
1249 set_bit(ABS_HAT2X, wdata->extension.input->absbit); in wiimod_classic_probe()
1250 set_bit(ABS_HAT2Y, wdata->extension.input->absbit); in wiimod_classic_probe()
1251 set_bit(ABS_HAT3X, wdata->extension.input->absbit); in wiimod_classic_probe()
1252 set_bit(ABS_HAT3Y, wdata->extension.input->absbit); in wiimod_classic_probe()
1253 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1255 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1257 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1259 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1261 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1263 input_set_abs_params(wdata->extension.input, in wiimod_classic_probe()
1266 ret = input_register_device(wdata->extension.input); in wiimod_classic_probe()
1273 input_free_device(wdata->extension.input); in wiimod_classic_probe()
1274 wdata->extension.input = NULL; in wiimod_classic_probe()
1281 if (!wdata->extension.input) in wiimod_classic_remove()
1284 input_unregister_device(wdata->extension.input); in wiimod_classic_remove()
1285 wdata->extension.input = NULL; in wiimod_classic_remove()
1311 input_report_key(wdata->extension.input, BTN_A, in wiimod_bboard_in_keys()
1313 input_sync(wdata->extension.input); in wiimod_bboard_in_keys()
1382 input_report_abs(wdata->extension.input, ABS_HAT0X, val[0]); in wiimod_bboard_in_ext()
1383 input_report_abs(wdata->extension.input, ABS_HAT0Y, val[1]); in wiimod_bboard_in_ext()
1384 input_report_abs(wdata->extension.input, ABS_HAT1X, val[2]); in wiimod_bboard_in_ext()
1385 input_report_abs(wdata->extension.input, ABS_HAT1Y, val[3]); in wiimod_bboard_in_ext()
1386 input_sync(wdata->extension.input); in wiimod_bboard_in_ext()
1498 wdata->extension.input = input_allocate_device(); in wiimod_bboard_probe()
1499 if (!wdata->extension.input) in wiimod_bboard_probe()
1509 input_set_drvdata(wdata->extension.input, wdata); in wiimod_bboard_probe()
1510 wdata->extension.input->open = wiimod_bboard_open; in wiimod_bboard_probe()
1511 wdata->extension.input->close = wiimod_bboard_close; in wiimod_bboard_probe()
1512 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_bboard_probe()
1513 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_bboard_probe()
1514 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_bboard_probe()
1515 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_bboard_probe()
1516 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_bboard_probe()
1517 wdata->extension.input->name = WIIMOTE_NAME " Balance Board"; in wiimod_bboard_probe()
1519 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_bboard_probe()
1520 set_bit(BTN_A, wdata->extension.input->keybit); in wiimod_bboard_probe()
1522 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_bboard_probe()
1523 set_bit(ABS_HAT0X, wdata->extension.input->absbit); in wiimod_bboard_probe()
1524 set_bit(ABS_HAT0Y, wdata->extension.input->absbit); in wiimod_bboard_probe()
1525 set_bit(ABS_HAT1X, wdata->extension.input->absbit); in wiimod_bboard_probe()
1526 set_bit(ABS_HAT1Y, wdata->extension.input->absbit); in wiimod_bboard_probe()
1527 input_set_abs_params(wdata->extension.input, in wiimod_bboard_probe()
1529 input_set_abs_params(wdata->extension.input, in wiimod_bboard_probe()
1531 input_set_abs_params(wdata->extension.input, in wiimod_bboard_probe()
1533 input_set_abs_params(wdata->extension.input, in wiimod_bboard_probe()
1536 ret = input_register_device(wdata->extension.input); in wiimod_bboard_probe()
1546 input_free_device(wdata->extension.input); in wiimod_bboard_probe()
1547 wdata->extension.input = NULL; in wiimod_bboard_probe()
1554 if (!wdata->extension.input) in wiimod_bboard_remove()
1557 input_unregister_device(wdata->extension.input); in wiimod_bboard_remove()
1558 wdata->extension.input = NULL; in wiimod_bboard_remove()
1702 input_report_abs(wdata->extension.input, ABS_X, lx); in wiimod_pro_in_ext()
1703 input_report_abs(wdata->extension.input, ABS_Y, ly); in wiimod_pro_in_ext()
1704 input_report_abs(wdata->extension.input, ABS_RX, rx); in wiimod_pro_in_ext()
1705 input_report_abs(wdata->extension.input, ABS_RY, ry); in wiimod_pro_in_ext()
1707 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1710 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1713 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1716 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1719 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1722 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1725 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1729 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1732 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1735 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1738 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1741 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1744 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1747 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1750 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1754 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1757 input_report_key(wdata->extension.input, in wiimod_pro_in_ext()
1761 input_sync(wdata->extension.input); in wiimod_pro_in_ext()
1878 wdata->extension.input = input_allocate_device(); in wiimod_pro_probe()
1879 if (!wdata->extension.input) in wiimod_pro_probe()
1882 set_bit(FF_RUMBLE, wdata->extension.input->ffbit); in wiimod_pro_probe()
1883 input_set_drvdata(wdata->extension.input, wdata); in wiimod_pro_probe()
1885 if (input_ff_create_memless(wdata->extension.input, NULL, in wiimod_pro_probe()
1898 wdata->extension.input->open = wiimod_pro_open; in wiimod_pro_probe()
1899 wdata->extension.input->close = wiimod_pro_close; in wiimod_pro_probe()
1900 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_pro_probe()
1901 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_pro_probe()
1902 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_pro_probe()
1903 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_pro_probe()
1904 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_pro_probe()
1905 wdata->extension.input->name = WIIMOTE_NAME " Pro Controller"; in wiimod_pro_probe()
1907 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_pro_probe()
1910 wdata->extension.input->keybit); in wiimod_pro_probe()
1912 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_pro_probe()
1913 set_bit(ABS_X, wdata->extension.input->absbit); in wiimod_pro_probe()
1914 set_bit(ABS_Y, wdata->extension.input->absbit); in wiimod_pro_probe()
1915 set_bit(ABS_RX, wdata->extension.input->absbit); in wiimod_pro_probe()
1916 set_bit(ABS_RY, wdata->extension.input->absbit); in wiimod_pro_probe()
1917 input_set_abs_params(wdata->extension.input, in wiimod_pro_probe()
1919 input_set_abs_params(wdata->extension.input, in wiimod_pro_probe()
1921 input_set_abs_params(wdata->extension.input, in wiimod_pro_probe()
1923 input_set_abs_params(wdata->extension.input, in wiimod_pro_probe()
1926 ret = input_register_device(wdata->extension.input); in wiimod_pro_probe()
1936 input_free_device(wdata->extension.input); in wiimod_pro_probe()
1937 wdata->extension.input = NULL; in wiimod_pro_probe()
1946 if (!wdata->extension.input) in wiimod_pro_remove()
1949 input_unregister_device(wdata->extension.input); in wiimod_pro_remove()
1950 wdata->extension.input = NULL; in wiimod_pro_remove()
1987 input_report_abs(wdata->extension.input, code, *store); in wiimod_drums_report_pressure()
1990 input_report_abs(wdata->extension.input, code, *store); in wiimod_drums_report_pressure()
2075 input_report_abs(wdata->extension.input, ABS_X, sx - 0x20); in wiimod_drums_in_ext()
2076 input_report_abs(wdata->extension.input, ABS_Y, sy - 0x20); in wiimod_drums_in_ext()
2078 input_report_key(wdata->extension.input, BTN_START, bp); in wiimod_drums_in_ext()
2079 input_report_key(wdata->extension.input, BTN_SELECT, bm); in wiimod_drums_in_ext()
2081 input_sync(wdata->extension.input); in wiimod_drums_in_ext()
2113 wdata->extension.input = input_allocate_device(); in wiimod_drums_probe()
2114 if (!wdata->extension.input) in wiimod_drums_probe()
2117 input_set_drvdata(wdata->extension.input, wdata); in wiimod_drums_probe()
2118 wdata->extension.input->open = wiimod_drums_open; in wiimod_drums_probe()
2119 wdata->extension.input->close = wiimod_drums_close; in wiimod_drums_probe()
2120 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_drums_probe()
2121 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_drums_probe()
2122 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_drums_probe()
2123 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_drums_probe()
2124 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_drums_probe()
2125 wdata->extension.input->name = WIIMOTE_NAME " Drums"; in wiimod_drums_probe()
2127 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_drums_probe()
2128 set_bit(BTN_START, wdata->extension.input->keybit); in wiimod_drums_probe()
2129 set_bit(BTN_SELECT, wdata->extension.input->keybit); in wiimod_drums_probe()
2131 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_drums_probe()
2132 set_bit(ABS_X, wdata->extension.input->absbit); in wiimod_drums_probe()
2133 set_bit(ABS_Y, wdata->extension.input->absbit); in wiimod_drums_probe()
2134 set_bit(ABS_HAT0X, wdata->extension.input->absbit); in wiimod_drums_probe()
2135 set_bit(ABS_HAT0Y, wdata->extension.input->absbit); in wiimod_drums_probe()
2136 set_bit(ABS_HAT1X, wdata->extension.input->absbit); in wiimod_drums_probe()
2137 set_bit(ABS_HAT2X, wdata->extension.input->absbit); in wiimod_drums_probe()
2138 set_bit(ABS_HAT2Y, wdata->extension.input->absbit); in wiimod_drums_probe()
2139 set_bit(ABS_HAT3X, wdata->extension.input->absbit); in wiimod_drums_probe()
2140 set_bit(ABS_HAT3Y, wdata->extension.input->absbit); in wiimod_drums_probe()
2141 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2143 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2145 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2147 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2149 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2151 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2153 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2155 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2157 input_set_abs_params(wdata->extension.input, in wiimod_drums_probe()
2160 ret = input_register_device(wdata->extension.input); in wiimod_drums_probe()
2167 input_free_device(wdata->extension.input); in wiimod_drums_probe()
2168 wdata->extension.input = NULL; in wiimod_drums_probe()
2175 if (!wdata->extension.input) in wiimod_drums_remove()
2178 input_unregister_device(wdata->extension.input); in wiimod_drums_remove()
2179 wdata->extension.input = NULL; in wiimod_drums_remove()
2278 input_report_abs(wdata->extension.input, ABS_X, sx - 0x20); in wiimod_guitar_in_ext()
2279 input_report_abs(wdata->extension.input, ABS_Y, sy - 0x20); in wiimod_guitar_in_ext()
2280 input_report_abs(wdata->extension.input, ABS_HAT0X, tb); in wiimod_guitar_in_ext()
2281 input_report_abs(wdata->extension.input, ABS_HAT1X, wb - 0x10); in wiimod_guitar_in_ext()
2283 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2286 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2289 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2292 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2295 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2298 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2301 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2304 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2307 input_report_key(wdata->extension.input, in wiimod_guitar_in_ext()
2311 input_sync(wdata->extension.input); in wiimod_guitar_in_ext()
2343 wdata->extension.input = input_allocate_device(); in wiimod_guitar_probe()
2344 if (!wdata->extension.input) in wiimod_guitar_probe()
2347 input_set_drvdata(wdata->extension.input, wdata); in wiimod_guitar_probe()
2348 wdata->extension.input->open = wiimod_guitar_open; in wiimod_guitar_probe()
2349 wdata->extension.input->close = wiimod_guitar_close; in wiimod_guitar_probe()
2350 wdata->extension.input->dev.parent = &wdata->hdev->dev; in wiimod_guitar_probe()
2351 wdata->extension.input->id.bustype = wdata->hdev->bus; in wiimod_guitar_probe()
2352 wdata->extension.input->id.vendor = wdata->hdev->vendor; in wiimod_guitar_probe()
2353 wdata->extension.input->id.product = wdata->hdev->product; in wiimod_guitar_probe()
2354 wdata->extension.input->id.version = wdata->hdev->version; in wiimod_guitar_probe()
2355 wdata->extension.input->name = WIIMOTE_NAME " Guitar"; in wiimod_guitar_probe()
2357 set_bit(EV_KEY, wdata->extension.input->evbit); in wiimod_guitar_probe()
2360 wdata->extension.input->keybit); in wiimod_guitar_probe()
2362 set_bit(EV_ABS, wdata->extension.input->evbit); in wiimod_guitar_probe()
2363 set_bit(ABS_X, wdata->extension.input->absbit); in wiimod_guitar_probe()
2364 set_bit(ABS_Y, wdata->extension.input->absbit); in wiimod_guitar_probe()
2365 set_bit(ABS_HAT0X, wdata->extension.input->absbit); in wiimod_guitar_probe()
2366 set_bit(ABS_HAT1X, wdata->extension.input->absbit); in wiimod_guitar_probe()
2367 input_set_abs_params(wdata->extension.input, in wiimod_guitar_probe()
2369 input_set_abs_params(wdata->extension.input, in wiimod_guitar_probe()
2371 input_set_abs_params(wdata->extension.input, in wiimod_guitar_probe()
2373 input_set_abs_params(wdata->extension.input, in wiimod_guitar_probe()
2376 ret = input_register_device(wdata->extension.input); in wiimod_guitar_probe()
2383 input_free_device(wdata->extension.input); in wiimod_guitar_probe()
2384 wdata->extension.input = NULL; in wiimod_guitar_probe()
2391 if (!wdata->extension.input) in wiimod_guitar_remove()
2394 input_unregister_device(wdata->extension.input); in wiimod_guitar_remove()
2395 wdata->extension.input = NULL; in wiimod_guitar_remove()