diff mbox series

[v3,12/33] qmi: Rename qmi_device_new_qmux to qmi_qmux_device_new

Message ID 20240620145139.1135899-12-denkenz@gmail.com (mailing list archive)
State Accepted
Commit b55beaaa79785a2c7d971471a29bc5042fef629e
Headers show
Series [v3,01/33] qmi: Remove qmi_free() | expand

Commit Message

Denis Kenzior June 20, 2024, 2:50 p.m. UTC
---
 drivers/qmimodem/qmi.c | 2 +-
 drivers/qmimodem/qmi.h | 3 +--
 plugins/gobi.c         | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c
index a845e3809090..9fdc209edf7c 100644
--- a/drivers/qmimodem/qmi.c
+++ b/drivers/qmimodem/qmi.c
@@ -1991,7 +1991,7 @@  static const struct qmi_device_ops qmux_ops = {
 	.destroy = qmi_device_qmux_destroy,
 };
 
-struct qmi_device *qmi_device_new_qmux(const char *device)
+struct qmi_device *qmi_qmux_device_new(const char *device)
 {
 	struct qmi_device_qmux *qmux;
 	int fd;
diff --git a/drivers/qmimodem/qmi.h b/drivers/qmimodem/qmi.h
index 10202fba6128..966d4f354d6e 100644
--- a/drivers/qmimodem/qmi.h
+++ b/drivers/qmimodem/qmi.h
@@ -68,6 +68,7 @@  typedef void (*qmi_discover_func_t)(void *user_data);
 
 typedef void (*qmi_service_result_func_t)(struct qmi_result *, void *);
 
+struct qmi_device *qmi_qmux_device_new(const char *device);
 void qmi_device_free(struct qmi_device *device);
 
 void qmi_device_set_debug(struct qmi_device *device,
@@ -87,8 +88,6 @@  enum qmi_device_expected_data_format qmi_device_get_expected_data_format(
 bool qmi_device_set_expected_data_format(struct qmi_device *device,
 			enum qmi_device_expected_data_format format);
 
-struct qmi_device *qmi_device_new_qmux(const char *device);
-
 struct qmi_device *qmi_qrtr_node_new(uint32_t node);
 struct qmi_service *qmi_qrtr_node_get_service(struct qmi_device *device,
 						uint32_t type);
diff --git a/plugins/gobi.c b/plugins/gobi.c
index d1da5fbc366b..5463a46edecb 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -501,7 +501,7 @@  static int gobi_enable(struct ofono_modem *modem)
 	if (!device)
 		return -EINVAL;
 
-	data->device = qmi_device_new_qmux(device);
+	data->device = qmi_qmux_device_new(device);
 	if (!data->device)
 		return -EIO;