Searched refs:thc_dev (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/hid/intel-thc-hid/intel-thc/ |
| H A D | intel-thc-wot.c | 22 void thc_wot_config(struct thc_device *thc_dev, const struct acpi_gpio_mapping *gpio_map) in thc_wot_config() argument 28 if (!thc_dev) in thc_wot_config() 31 adev = ACPI_COMPANION(thc_dev->dev); in thc_wot_config() 35 wot = &thc_dev->wot; in thc_wot_config() 39 dev_warn(thc_dev->dev, "Can't add wake GPIO resource, ret = %d\n", ret); in thc_wot_config() 46 dev_warn(thc_dev->dev, "Can't find wake GPIO resource\n"); in thc_wot_config() 51 dev_warn(thc_dev->dev, "GPIO resource isn't wakeable\n"); in thc_wot_config() 55 ret = device_init_wakeup(thc_dev->dev, true); in thc_wot_config() 57 dev_warn(thc_dev->dev, "Failed to init wake up.\n"); in thc_wot_config() 61 ret = dev_pm_set_dedicated_wake_irq(thc_dev->dev, wot->gpio_irq); in thc_wot_config() [all …]
|
| H A D | intel-thc-wot.h | 23 void thc_wot_config(struct thc_device *thc_dev, const struct acpi_gpio_mapping *gpio_map); 24 void thc_wot_unconfig(struct thc_device *thc_dev);
|