Lines Matching refs:idev
25 struct input_dev *idev) in chromeos_tbmc_query_switch() argument
35 input_report_switch(idev, SW_TABLET_MODE, state); in chromeos_tbmc_query_switch()
36 input_sync(idev); in chromeos_tbmc_query_switch()
60 static int chromeos_tbmc_open(struct input_dev *idev) in chromeos_tbmc_open() argument
62 struct acpi_device *adev = input_get_drvdata(idev); in chromeos_tbmc_open()
64 return chromeos_tbmc_query_switch(adev, idev); in chromeos_tbmc_open()
69 struct input_dev *idev; in chromeos_tbmc_add() local
73 idev = devm_input_allocate_device(dev); in chromeos_tbmc_add()
74 if (!idev) in chromeos_tbmc_add()
77 idev->name = "Tablet Mode Switch"; in chromeos_tbmc_add()
78 idev->phys = acpi_device_hid(adev); in chromeos_tbmc_add()
80 idev->id.bustype = BUS_HOST; in chromeos_tbmc_add()
81 idev->id.version = 1; in chromeos_tbmc_add()
82 idev->id.product = 0; in chromeos_tbmc_add()
83 idev->open = chromeos_tbmc_open; in chromeos_tbmc_add()
85 input_set_drvdata(idev, adev); in chromeos_tbmc_add()
86 adev->driver_data = idev; in chromeos_tbmc_add()
88 input_set_capability(idev, EV_SW, SW_TABLET_MODE); in chromeos_tbmc_add()
89 ret = input_register_device(idev); in chromeos_tbmc_add()