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>
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index f3c3778..d0fc40b 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -445,6 +445,16 @@
 	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,