summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2015-01-24 01:50:48 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:10:59 -0700
commit852b36a9c0e166db3f52407591e0af6b9a3897b0 (patch)
treece83060061aff2080cf0181e18df9dc7593820ea /include/linux/mod_devicetable.h
parent8152f43f0addbcf967d8c807d93f31034a53ad19 (diff)
soundwire: add support for device table match
With this patch soundwire drivers can use id_table and MODULE_DEVICE_TABLE() method to bind against the devices just like I2C or SPI drivers. Change-Id: I4e8eee3cb9626a5dc4fbfa238b5d2a578355f2a3 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 2db456a3a8cd..f5349823d0d2 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -445,6 +445,16 @@ struct spmi_device_id {
kernel_ulong_t driver_data; /* Data private to the driver */
};
+/* soundwire */
+
+#define SOUNDWIRE_NAME_SIZE 32
+#define SOUNDWIRE_MODULE_PREFIX "swr:"
+
+struct swr_device_id {
+ char name[SOUNDWIRE_NAME_SIZE];
+ kernel_ulong_t driver_data; /* Data private to the driver */
+};
+
/* dmi */
enum dmi_field {
DMI_NONE,