Lines Matching refs:input_dev
53 struct input_dev *input_dev;
232 static int max77693_haptic_play_effect(struct input_dev *dev, void *data,
258 static int max77693_haptic_open(struct input_dev *dev)
277 static void max77693_haptic_close(struct input_dev *dev)
346 haptic->input_dev = devm_input_allocate_device(&pdev->dev);
347 if (!haptic->input_dev) {
352 haptic->input_dev->name = "max77693-haptic";
353 haptic->input_dev->id.version = 1;
354 haptic->input_dev->dev.parent = &pdev->dev;
355 haptic->input_dev->open = max77693_haptic_open;
356 haptic->input_dev->close = max77693_haptic_close;
357 input_set_drvdata(haptic->input_dev, haptic);
358 input_set_capability(haptic->input_dev, EV_FF, FF_RUMBLE);
360 error = input_ff_create_memless(haptic->input_dev, NULL,
367 error = input_register_device(haptic->input_dev);