Backport from 5.7. It is required by MHI drivers to probe modules properly. Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> --- backport/backport-include/linux/mod_devicetable.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 */ -- 2.35.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in