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>
This commit is contained in:
Thomas Weißschuh
2021-10-29 17:28:56 +02:00
committed by Jiri Kosina
parent 5af06603c4
commit fa443bc3c1
3 changed files with 40 additions and 0 deletions

View File

@@ -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 */