From 852b36a9c0e166db3f52407591e0af6b9a3897b0 Mon Sep 17 00:00:00 2001 From: Sudheer Papothi Date: Sat, 24 Jan 2015 01:50:48 +0530 Subject: 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 --- include/linux/mod_devicetable.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/linux/mod_devicetable.h') 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, -- cgit v1.2.3