diff mbox series

[1/4] qmi: Drop qmi_device_ref

Message ID 20240222171438.1291553-1-denkenz@gmail.com (mailing list archive)
State Accepted
Commit a3754ea275282b48e1520b248e624b0c7e13c1b2
Headers show
Series [1/4] qmi: Drop qmi_device_ref | expand

Commit Message

Denis Kenzior Feb. 22, 2024, 5:14 p.m. UTC
This API isn't being used, drop it.
---
 drivers/qmimodem/qmi.c | 10 ----------
 drivers/qmimodem/qmi.h |  1 -
 2 files changed, 11 deletions(-)

Comments

patchwork-bot+ofono@kernel.org Feb. 22, 2024, 6:30 p.m. UTC | #1
Hello:

This series was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:

On Thu, 22 Feb 2024 11:14:17 -0600 you wrote:
> This API isn't being used, drop it.
> ---
>  drivers/qmimodem/qmi.c | 10 ----------
>  drivers/qmimodem/qmi.h |  1 -
>  2 files changed, 11 deletions(-)

Here is the summary with links:
  - [1/4] qmi: Drop qmi_device_ref
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=a3754ea27528
  - [2/4] qmi: Rename qmi_device_unref to qmi_device_free
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=fa849c0c1ab3
  - [3/4] qmi: Introduce client_release driver method
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=63adff8aaf1b
  - [4/4] qmi: Introduce client_create driver method
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=4d20101211ae

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c
index 52a8e57c23d9..2dde31b11c7c 100644
--- a/drivers/qmimodem/qmi.c
+++ b/drivers/qmimodem/qmi.c
@@ -961,16 +961,6 @@  static int qmi_device_init(struct qmi_device *device, int fd,
 	return 0;
 }
 
-struct qmi_device *qmi_device_ref(struct qmi_device *device)
-{
-	if (!device)
-		return NULL;
-
-	__sync_fetch_and_add(&device->ref_count, 1);
-
-	return device;
-}
-
 static void __qmi_device_shutdown_finished(struct qmi_device *device)
 {
 	if (device->destroyed)
diff --git a/drivers/qmimodem/qmi.h b/drivers/qmimodem/qmi.h
index df4bc39644a2..14ad84e5006a 100644
--- a/drivers/qmimodem/qmi.h
+++ b/drivers/qmimodem/qmi.h
@@ -81,7 +81,6 @@  typedef void (*qmi_debug_func_t)(const char *str, void *user_data);
 typedef void (*qmi_shutdown_func_t)(void *user_data);
 typedef void (*qmi_discover_func_t)(void *user_data);
 
-struct qmi_device *qmi_device_ref(struct qmi_device *device);
 void qmi_device_unref(struct qmi_device *device);
 
 void qmi_device_set_debug(struct qmi_device *device,