xref: /linux/drivers/hid/intel-thc-hid/intel-thc/intel-thc-wot.h (revision b80a75cf6999fb79971b41eaec7af2bb4b514714)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2025 Intel Corporation */
3 
4 #ifndef _INTEL_THC_WOT_H_
5 #define _INTEL_THC_WOT_H_
6 
7 #include <linux/types.h>
8 
9 #include <linux/gpio/consumer.h>
10 
11 /**
12  * struct thc_wot - THC Wake-on-Touch data structure
13  * @gpio_irq : GPIO interrupt IRQ number for wake-on-touch
14  * @gpio_irq_wakeable : Indicate GPIO IRQ workable or not
15  */
16 struct thc_wot {
17 	int gpio_irq;
18 	bool gpio_irq_wakeable;
19 };
20 
21 struct thc_device;
22 
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);
25 
26 #endif /* _INTEL_THC_WOT_H_ */
27