Lines Matching refs:inputdev
101 struct input_dev *inputdev; member
689 struct input_dev *inputdev; in ideapad_input_init() local
692 inputdev = input_allocate_device(); in ideapad_input_init()
693 if (!inputdev) in ideapad_input_init()
696 inputdev->name = "Ideapad extra buttons"; in ideapad_input_init()
697 inputdev->phys = "ideapad/input0"; in ideapad_input_init()
698 inputdev->id.bustype = BUS_HOST; in ideapad_input_init()
699 inputdev->dev.parent = &priv->platform_device->dev; in ideapad_input_init()
701 error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL); in ideapad_input_init()
707 error = input_register_device(inputdev); in ideapad_input_init()
713 priv->inputdev = inputdev; in ideapad_input_init()
717 input_free_device(inputdev); in ideapad_input_init()
723 input_unregister_device(priv->inputdev); in ideapad_input_exit()
724 priv->inputdev = NULL; in ideapad_input_exit()
730 sparse_keymap_report_event(priv->inputdev, scancode, 1, true); in ideapad_input_report()