diff mbox series

[13/13] qmi: wda: Convert #defines to an enum

Message ID 20241031220638.1582166-13-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 5677ffdbe643f279fa03ba9acd4dd4849287747f
Headers show
Series [01/13] qmi: validate TLV length | expand

Commit Message

Denis Kenzior Oct. 31, 2024, 10:06 p.m. UTC
---
 drivers/qmimodem/wda.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/qmimodem/wda.h b/drivers/qmimodem/wda.h
index 25bc01eb7565..fd1e1f63ab1e 100644
--- a/drivers/qmimodem/wda.h
+++ b/drivers/qmimodem/wda.h
@@ -10,6 +10,9 @@ 
 
 /* Get and set data format interface */
 #define QMI_WDA_LL_PROTOCOL	0x11	/* uint32_t */
-#define QMI_WDA_DATA_LINK_PROTOCOL_UNKNOWN	0
-#define QMI_WDA_DATA_LINK_PROTOCOL_802_3	1
-#define QMI_WDA_DATA_LINK_PROTOCOL_RAW_IP	2
+
+enum qmi_wda_data_link_protocol {
+	QMI_WDA_DATA_LINK_PROTOCOL_UNKNOWN =			0x00,
+	QMI_WDA_DATA_LINK_PROTOCOL_802_3 =			0x01,
+	QMI_WDA_DATA_LINK_PROTOCOL_RAW_IP =			0x02,
+};