Lines Matching +full:e +full:- +full:book

1 // SPDX-License-Identifier: GPL-2.0-only
111 dev_warn_once(&device->dev, "Tablet mode is not supported\n"); in surface_button_notify()
114 dev_info_ratelimited(&device->dev, in surface_button_notify()
118 input = button->input; in surface_button_notify()
122 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify()
123 if (button->suspended) in surface_button_notify()
135 button->suspended = true; in surface_button_suspend()
144 button->suspended = false; in surface_button_resume()
150 * Surface Pro 4 and Surface Book 2 / Surface Pro 2017 use the same device
154 * Returns true if the driver should bind to this device, i.e. the device is
155 * either MSWH0028 (Pro 3) or MSHW0040 on a Pro 4 or Book 1.
159 acpi_handle handle = dev->handle; in surface_button_check_MSHW0040()
171 * that we have either MSHW0028 or MSHW0040 on Pro 4 or Book 1, so we in surface_button_check_MSHW0040()
177 oem_platform_rev = result->integer.value; in surface_button_check_MSHW0040()
181 dev_dbg(&dev->dev, "OEM Platform Revision %llu\n", oem_platform_rev); in surface_button_check_MSHW0040()
197 return -ENODEV; in surface_button_add()
200 return -ENODEV; in surface_button_add()
204 return -ENOMEM; in surface_button_add()
206 device->driver_data = button; in surface_button_add()
207 button->input = input = input_allocate_device(); in surface_button_add()
209 error = -ENOMEM; in surface_button_add()
215 snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); in surface_button_add()
217 input->name = name; in surface_button_add()
218 input->phys = button->phys; in surface_button_add()
219 input->id.bustype = BUS_HOST; in surface_button_add()
220 input->dev.parent = &device->dev; in surface_button_add()
230 device_init_wakeup(&device->dev, true); in surface_button_add()
231 dev_info(&device->dev, in surface_button_add()
246 input_unregister_device(button->input); in surface_button_remove()