summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2021-10-29 18:28:56 +0300
committerJiri Kosina <jkosina@suse.cz>2021-11-09 13:41:46 +0300
commitfa443bc3c1e4b28d9315dea882e8358ba6e26f8b (patch)
tree970315d2559681a6085e0c2993b592ea83936870 /include/linux/mod_devicetable.h
parent5af06603c4090617be216a9185193a7be3ca60af (diff)
downloadlinux-fa443bc3c1e4b28d9315dea882e8358ba6e26f8b.tar.xz
HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()
This allows to selectively autoload drivers for ISH devices. Currently all ISH drivers are loaded for all systems having any ISH device. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index ae2e75d15b21..befbf53c4b7c 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -895,4 +895,17 @@ struct dfl_device_id {
kernel_ulong_t driver_data;
};
+/* ISHTP (Integrated Sensor Hub Transport Protocol) */
+
+#define ISHTP_MODULE_PREFIX "ishtp:"
+
+/**
+ * struct ishtp_device_id - ISHTP device identifier
+ * @guid_string: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
+ * @context: pointer to driver specific data
+ */
+struct ishtp_device_id {
+ guid_t guid;
+};
+
#endif /* LINUX_MOD_DEVICETABLE_H */