From a772e4964b4afe9a728d241e152ba35fcba0e078 Mon Sep 17 00:00:00 2001 From: Gustavo Solaira Date: Mon, 19 Nov 2018 12:12:47 -0800 Subject: include: Add device table definition for MHI drivers Add driver definition used by MHI core to enable device drivers that use the MHI bus. Change-Id: I2740dd7687dff0312fd679dbac146d21d9cbc8fe Signed-off-by: Gustavo Solaira --- include/linux/mod_devicetable.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/linux') diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index f5349823d0d2..66595321dfe3 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -677,4 +677,16 @@ struct ulpi_device_id { kernel_ulong_t driver_data; }; +#define MHI_NAME_SIZE 32 + +/** + * struct mhi_device_id - MHI device identification + * @chan: MHI channel name + * @driver_data: driver data + */ +struct mhi_device_id { + const char chan[MHI_NAME_SIZE]; + kernel_ulong_t driver_data; +}; + #endif /* LINUX_MOD_DEVICETABLE_H */ -- cgit v1.2.3