Lines Matching refs:ebook_switch_idev
32 static struct input_dev *ebook_switch_idev; variable
83 if (test_bit(SW_TABLET_MODE, ebook_switch_idev->sw) == !!state) in send_ebook_state()
86 input_report_switch(ebook_switch_idev, SW_TABLET_MODE, state); in send_ebook_state()
87 input_sync(ebook_switch_idev); in send_ebook_state()
88 pm_wakeup_event(&ebook_switch_idev->dev, 0); in send_ebook_state()
273 if (device_may_wakeup(&ebook_switch_idev->dev)) in xo1_sci_suspend()
470 ebook_switch_idev = input_allocate_device(); in setup_ebook_switch()
471 if (!ebook_switch_idev) in setup_ebook_switch()
474 ebook_switch_idev->name = "EBook Switch"; in setup_ebook_switch()
475 ebook_switch_idev->phys = DRV_NAME "/input1"; in setup_ebook_switch()
476 set_bit(EV_SW, ebook_switch_idev->evbit); in setup_ebook_switch()
477 set_bit(SW_TABLET_MODE, ebook_switch_idev->swbit); in setup_ebook_switch()
479 ebook_switch_idev->dev.parent = &pdev->dev; in setup_ebook_switch()
480 device_set_wakeup_capable(&ebook_switch_idev->dev, true); in setup_ebook_switch()
482 r = input_register_device(ebook_switch_idev); in setup_ebook_switch()
485 input_free_device(ebook_switch_idev); in setup_ebook_switch()
493 input_unregister_device(ebook_switch_idev); in free_ebook_switch()