aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-17 02:59:47 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-10-06 18:17:37 +0200
commit57806cd84ee862203dd397326dc0e0fc7c430b74 (patch)
treef4fdddcb8806812773088329d5df3d7acf865d52
parentfe9ce3a79aa07e59dea0dbfd61db3a0c9dd3e094 (diff)
downloadhardware_replicant_libsamsung-ipc-57806cd84ee862203dd397326dc0e0fc7c430b74.zip
hardware_replicant_libsamsung-ipc-57806cd84ee862203dd397326dc0e0fc7c430b74.tar.gz
hardware_replicant_libsamsung-ipc-57806cd84ee862203dd397326dc0e0fc7c430b74.tar.bz2
modems: xmm626: use modem_data_send
Now that we have the modem_data_send abstraction, we can replace all the mm626_{hsic/hsic}_modem_data_send instances by it. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/modems/xmm626/xmm626_hsic.c10
-rw-r--r--samsung-ipc/modems/xmm626/xmm626_mipi.c14
2 files changed, 12 insertions, 12 deletions
diff --git a/samsung-ipc/modems/xmm626/xmm626_hsic.c b/samsung-ipc/modems/xmm626/xmm626_hsic.c
index 50cfc0e..a59d41a 100644
--- a/samsung-ipc/modems/xmm626/xmm626_hsic.c
+++ b/samsung-ipc/modems/xmm626/xmm626_hsic.c
@@ -30,6 +30,7 @@
#include <samsung-ipc.h>
#include "ipc.h"
+#include "modems/modem.h"
#include "modems/xmm626/xmm626.h"
#include "modems/xmm626/xmm626_hsic.h"
#include "modems/xmm626/xmm626_mipi.h"
@@ -550,9 +551,8 @@ int xmm626_hsic_firmware_send(struct ipc_client *client, int device_fd,
return -1;
}
- rc = xmm626_hsic_modem_data_send(client, device_fd, firmware_data,
- firmware_size,
- XMM626_FIRMWARE_ADDRESS);
+ rc = modem_data_send(client, device_fd, firmware_data,
+ firmware_size, XMM626_FIRMWARE_ADDRESS);
if (rc < 0)
return -1;
@@ -579,8 +579,8 @@ int xmm626_hsic_nv_data_send(struct ipc_client *client, int device_fd)
}
ipc_client_log(client, "Loaded nv_data");
- rc = xmm626_hsic_modem_data_send(client, device_fd, nv_data, nv_size,
- XMM626_NV_DATA_ADDRESS);
+ rc = modem_data_send(client, device_fd, nv_data, nv_size,
+ XMM626_NV_DATA_ADDRESS);
if (rc < 0)
goto error;
diff --git a/samsung-ipc/modems/xmm626/xmm626_mipi.c b/samsung-ipc/modems/xmm626/xmm626_mipi.c
index 0fedad6..e143ac7 100644
--- a/samsung-ipc/modems/xmm626/xmm626_mipi.c
+++ b/samsung-ipc/modems/xmm626/xmm626_mipi.c
@@ -30,6 +30,7 @@
#include <samsung-ipc.h>
#include "ipc.h"
+#include "modems/modem.h"
#include "modems/xmm626/xmm626.h"
#include "modems/xmm626/xmm626_mipi.h"
@@ -594,9 +595,8 @@ int xmm626_mipi_firmware_send(struct ipc_client *client, int device_fd,
return -1;
}
- rc = xmm626_mipi_modem_data_send(client, device_fd, firmware_data,
- firmware_size,
- XMM626_FIRMWARE_ADDRESS);
+ rc = modem_data_send(client, device_fd, firmware_data,
+ firmware_size, XMM626_FIRMWARE_ADDRESS);
if (rc < 0)
return -1;
@@ -623,8 +623,8 @@ int xmm626_mipi_nv_data_send(struct ipc_client *client, int device_fd)
}
ipc_client_log(client, "Loaded nv_data");
- rc = xmm626_mipi_modem_data_send(client, device_fd, nv_data, nv_size,
- XMM626_NV_DATA_ADDRESS);
+ rc = modem_data_send(client, device_fd, nv_data, nv_size,
+ XMM626_NV_DATA_ADDRESS);
if (rc < 0)
goto error;
@@ -651,8 +651,8 @@ int xmm626_mipi_mps_data_send(struct ipc_client *client, int device_fd,
return -1;
}
- rc = xmm626_mipi_modem_data_send(client, device_fd, mps_data, mps_size,
- XMM626_MPS_DATA_ADDRESS);
+ rc = modem_data_send(client, device_fd, mps_data, mps_size,
+ XMM626_MPS_DATA_ADDRESS);
if (rc < 0)
return -1;