aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-17 00:09:56 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-24 19:42:33 (GMT)
commit584e9eaa9dea2928621c78ae8a28dc23c2ebd08d (patch)
treecdd2592a28786de4cd5dd3cec52b48d1993e6755
parent503fbf5986bf3679d6bcd542c706303f1c58c673 (diff)
downloadhardware_replicant_libsamsung-ipc-584e9eaa9dea2928621c78ae8a28dc23c2ebd08d.zip
hardware_replicant_libsamsung-ipc-584e9eaa9dea2928621c78ae8a28dc23c2ebd08d.tar.gz
hardware_replicant_libsamsung-ipc-584e9eaa9dea2928621c78ae8a28dc23c2ebd08d.tar.bz2
xmm626_hsic_ack_read: pass the ipc_client struct
This enables to use logging inside the callbacks. At this point the ipc_client struct is already available, so it is safe to do that. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/modems/xmm626/xmm626_hsic.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/samsung-ipc/modems/xmm626/xmm626_hsic.c b/samsung-ipc/modems/xmm626/xmm626_hsic.c
index 16aaf00..0ec7347 100644
--- a/samsung-ipc/modems/xmm626/xmm626_hsic.c
+++ b/samsung-ipc/modems/xmm626/xmm626_hsic.c
@@ -33,7 +33,8 @@
#include "modems/xmm626/xmm626.h"
#include "modems/xmm626/xmm626_hsic.h"
-int xmm626_hsic_ack_read(int device_fd, unsigned short ack)
+int xmm626_hsic_ack_read(__attribute__((unused)) struct ipc_client *client,
+ int device_fd, unsigned short ack)
{
struct timeval timeout;
fd_set fds;
@@ -215,7 +216,7 @@ int xmm626_hsic_psi_send(struct ipc_client *client, int device_fd,
}
ipc_client_log(client, "Read PSI CRC ACK");
- rc = xmm626_hsic_ack_read(device_fd, XMM626_HSIC_PSI_ACK);
+ rc = xmm626_hsic_ack_read(client, device_fd, XMM626_HSIC_PSI_ACK);
if (rc < 0) {
ipc_client_log(client, "Reading PSI ACK failed");
goto error;
@@ -257,7 +258,7 @@ int xmm626_hsic_ebl_send(struct ipc_client *client, int device_fd,
}
ipc_client_log(client, "Wrote EBL size");
- rc = xmm626_hsic_ack_read(device_fd, XMM626_HSIC_EBL_SIZE_ACK);
+ rc = xmm626_hsic_ack_read(client, device_fd, XMM626_HSIC_EBL_SIZE_ACK);
if (rc < 0) {
ipc_client_log(client, "Reading EBL size ACK failed");
goto error;
@@ -291,7 +292,7 @@ int xmm626_hsic_ebl_send(struct ipc_client *client, int device_fd,
}
ipc_client_log(client, "Wrote EBL CRC (0x%x)", ebl_crc);
- rc = xmm626_hsic_ack_read(device_fd, XMM626_HSIC_EBL_ACK);
+ rc = xmm626_hsic_ack_read(client, device_fd, XMM626_HSIC_EBL_ACK);
if (rc < 0) {
ipc_client_log(client, "Reading EBL ACK failed");
goto error;