aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/piranha/piranha.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-30 18:21:15 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-21 00:53:50 +0100
commitfce498bdef8f6179ef477ecdd3b9407e673af640 (patch)
treed107cb279eaa1925b75c9cfc743796d8662e3e83 /samsung-ipc/devices/piranha/piranha.c
parente03710c1f462f74ac6bea5f03047feae9a81a866 (diff)
downloadhardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.tar.gz
hardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.tar.bz2
hardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.zip
modem boot handlers: pass it the ipc_client struct
This enables to use logging inside the handlers: ipc_client_log needs access to the ipc_client struct to work. 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>
Diffstat (limited to 'samsung-ipc/devices/piranha/piranha.c')
-rw-r--r--samsung-ipc/devices/piranha/piranha.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samsung-ipc/devices/piranha/piranha.c b/samsung-ipc/devices/piranha/piranha.c
index 6360be2..f4527c6 100644
--- a/samsung-ipc/devices/piranha/piranha.c
+++ b/samsung-ipc/devices/piranha/piranha.c
@@ -67,14 +67,14 @@ int piranha_boot(struct ipc_client *client)
}
ipc_client_log(client, "Opened modem boot device");
- rc = xmm626_sec_modem_power(modem_boot_fd, 0);
+ rc = xmm626_sec_modem_power(client, modem_boot_fd, 0);
if (rc < 0) {
ipc_client_log(client, "Turning the modem off failed");
goto error;
}
ipc_client_log(client, "Turned the modem off");
- rc = xmm626_sec_modem_power(modem_boot_fd, 1);
+ rc = xmm626_sec_modem_power(client, modem_boot_fd, 1);
if (rc < 0) {
ipc_client_log(client, "Turning the modem on failed");
goto error;
@@ -270,7 +270,7 @@ int piranha_power_off(__attribute__((unused)) struct ipc_client *client,
if (fd < 0)
return -1;
- rc = xmm626_sec_modem_power(fd, 0);
+ rc = xmm626_sec_modem_power(client, fd, 0);
close(fd);