[PATCH v2 1/7] headers: Add MHI stuff to mod_devicetable

Jiaxun Yang <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
Backport from 5.7.
It is required by MHI drivers to probe modules properly.

Signed-off-by: Jiaxun Yang <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.