diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-17 03:16:27 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-10-06 18:17:38 +0200 |
commit | 79d6370638a137473a41573132cd8d66e32d90a1 (patch) | |
tree | dfe0910be5303269681fb02617c6daf03ca8aa18 /samsung-ipc/modems/xmm626/xmm626_hsic.c | |
parent | 57806cd84ee862203dd397326dc0e0fc7c430b74 (diff) | |
download | hardware_replicant_libsamsung-ipc-79d6370638a137473a41573132cd8d66e32d90a1.tar.gz hardware_replicant_libsamsung-ipc-79d6370638a137473a41573132cd8d66e32d90a1.tar.bz2 hardware_replicant_libsamsung-ipc-79d6370638a137473a41573132cd8d66e32d90a1.zip |
modems: xmm626: unify xmm626_{hsic/mipi}_nv_data_send
These two functions are now identical so it makes no sense to keep them
both.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ipc/modems/xmm626/xmm626_hsic.c')
-rw-r--r-- | samsung-ipc/modems/xmm626/xmm626_hsic.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/samsung-ipc/modems/xmm626/xmm626_hsic.c b/samsung-ipc/modems/xmm626/xmm626_hsic.c index a59d41a..5568584 100644 --- a/samsung-ipc/modems/xmm626/xmm626_hsic.c +++ b/samsung-ipc/modems/xmm626/xmm626_hsic.c @@ -559,44 +559,6 @@ int xmm626_hsic_firmware_send(struct ipc_client *client, int device_fd, return 0; } -int xmm626_hsic_nv_data_send(struct ipc_client *client, int device_fd) -{ - void *nv_data = NULL; - size_t nv_size; - int rc; - - if (client == NULL || device_fd < 0) - return -1; - - nv_size = ipc_client_nv_data_size(client); - if (nv_size == 0) - return -1; - - nv_data = ipc_nv_data_load(client); - if (nv_data == NULL) { - ipc_client_log(client, "Loading nv_data failed"); - goto error; - } - ipc_client_log(client, "Loaded nv_data"); - - rc = modem_data_send(client, device_fd, nv_data, nv_size, - XMM626_NV_DATA_ADDRESS); - if (rc < 0) - goto error; - - rc = 0; - goto complete; - -error: - rc = -1; - -complete: - if (nv_data != NULL) - free(nv_data); - - return rc; -} - int xmm626_hsic_hw_reset_send(struct ipc_client *client, int device_fd) { unsigned int hw_reset_data; |