diff options
author | Gustavo Solaira <gustavos@codeaurora.org> | 2018-11-19 12:12:47 -0800 |
---|---|---|
committer | Gustavo Solaira <gustavos@codeaurora.org> | 2018-11-19 13:02:16 -0800 |
commit | a772e4964b4afe9a728d241e152ba35fcba0e078 (patch) | |
tree | 971efd5eee5fa6d8c4a66a48f69325f34e685311 /include | |
parent | f1587d8660239a4371a73d10a2c56834d7daf6cc (diff) |
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 <gustavos@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mod_devicetable.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 */ |