Home
last modified time | relevance | path

Searched refs:thc_dev (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/hid/intel-thc-hid/intel-thc/
H A Dintel-thc-wot.c22 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 Dintel-thc-wot.h23 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);
H A Dintel-thc-dev.c197 struct thc_device *thc_dev; in thc_dev_init() local
200 thc_dev = devm_kzalloc(device, sizeof(*thc_dev), GFP_KERNEL); in thc_dev_init()
201 if (!thc_dev) in thc_dev_init()
204 thc_dev->dev = device; in thc_dev_init()
205 thc_dev->mmio_addr = mem_addr; in thc_dev_init()
206 thc_dev->thc_regmap = devm_regmap_init(device, NULL, thc_dev, &thc_regmap_cfg); in thc_dev_init()
207 if (IS_ERR(thc_dev->thc_regmap)) { in thc_dev_init()
208 ret = PTR_ERR(thc_dev->thc_regmap); in thc_dev_init()
213 thc_clear_state(thc_dev); in thc_dev_init()
215 mutex_init(&thc_dev->thc_bus_lock); in thc_dev_init()
[all …]