Lines Matching refs:ebook_switch_idev
37 static struct input_dev *ebook_switch_idev; variable
88 if (!!test_bit(SW_TABLET_MODE, ebook_switch_idev->sw) == state) in send_ebook_state()
91 input_report_switch(ebook_switch_idev, SW_TABLET_MODE, state); in send_ebook_state()
92 input_sync(ebook_switch_idev); in send_ebook_state()
93 pm_wakeup_event(&ebook_switch_idev->dev, 0); in send_ebook_state()
272 if (device_may_wakeup(&ebook_switch_idev->dev)) in xo1_sci_suspend()
469 ebook_switch_idev = input_allocate_device(); in setup_ebook_switch()
470 if (!ebook_switch_idev) in setup_ebook_switch()
473 ebook_switch_idev->name = "EBook Switch"; in setup_ebook_switch()
474 ebook_switch_idev->phys = DRV_NAME "/input1"; in setup_ebook_switch()
475 set_bit(EV_SW, ebook_switch_idev->evbit); in setup_ebook_switch()
476 set_bit(SW_TABLET_MODE, ebook_switch_idev->swbit); in setup_ebook_switch()
478 ebook_switch_idev->dev.parent = &pdev->dev; in setup_ebook_switch()
479 device_set_wakeup_capable(&ebook_switch_idev->dev, true); in setup_ebook_switch()
481 r = input_register_device(ebook_switch_idev); in setup_ebook_switch()
484 input_free_device(ebook_switch_idev); in setup_ebook_switch()
492 input_unregister_device(ebook_switch_idev); in free_ebook_switch()