diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2022-02-07 11:33:32 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-04-05 23:41:04 +0200 |
commit | 8afac3a8ddf832c33b4a7acff5687bae657c8c38 (patch) | |
tree | 37fd614774ad00fa961e4fb71c345c45db103ce4 | |
parent | c9d52475239e35cce287c1cdccd50c450ad66148 (diff) | |
download | backports-8afac3a8ddf832c33b4a7acff5687bae657c8c38.tar.gz |
headers: Add MHI stuff to mod_devicetable
Backport from 5.7.
It is required by MHI drivers to probe modules properly.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
-rw-r--r-- | backport/backport-include/linux/mod_devicetable.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backport/backport-include/linux/mod_devicetable.h b/backport/backport-include/linux/mod_devicetable.h index ec0a3e62..fc9beedb 100644 --- a/backport/backport-include/linux/mod_devicetable.h +++ b/backport/backport-include/linux/mod_devicetable.h @@ -14,4 +14,19 @@ #define HID_ANY_ID (~0) #endif +#if LINUX_VERSION_IS_LESS(5,7,0) +#define MHI_DEVICE_MODALIAS_FMT "mhi:%s" +#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 + #endif /* __BACKPORT_MOD_DEVICETABLE_H */ |