Lines Matching refs:seesaw
225 struct seesaw_gamepad *seesaw; in seesaw_probe() local
236 seesaw = devm_kzalloc(&client->dev, sizeof(*seesaw), GFP_KERNEL); in seesaw_probe()
237 if (!seesaw) in seesaw_probe()
262 seesaw->i2c_client = client; in seesaw_probe()
263 seesaw->input_dev = devm_input_allocate_device(&client->dev); in seesaw_probe()
264 if (!seesaw->input_dev) in seesaw_probe()
267 seesaw->input_dev->id.bustype = BUS_I2C; in seesaw_probe()
268 seesaw->input_dev->name = "Adafruit Seesaw Gamepad"; in seesaw_probe()
269 seesaw->input_dev->phys = "i2c/" SEESAW_DEVICE_NAME; in seesaw_probe()
270 seesaw->input_dev->open = seesaw_open; in seesaw_probe()
271 input_set_drvdata(seesaw->input_dev, seesaw); in seesaw_probe()
272 input_set_abs_params(seesaw->input_dev, ABS_X, in seesaw_probe()
275 input_set_abs_params(seesaw->input_dev, ABS_Y, in seesaw_probe()
279 err = sparse_keymap_setup(seesaw->input_dev, seesaw_buttons_new, NULL); in seesaw_probe()
286 err = input_setup_polling(seesaw->input_dev, seesaw_poll); in seesaw_probe()
292 input_set_poll_interval(seesaw->input_dev, in seesaw_probe()
294 input_set_max_poll_interval(seesaw->input_dev, SEESAW_GAMEPAD_POLL_MAX); in seesaw_probe()
295 input_set_min_poll_interval(seesaw->input_dev, SEESAW_GAMEPAD_POLL_MIN); in seesaw_probe()
297 err = input_register_device(seesaw->input_dev); in seesaw_probe()