diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-06 15:52:24 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-08 00:48:56 +0100 |
commit | 4e8c79f65942eac32e1f6865e4cdbaff53a8b4d9 (patch) | |
tree | 9bab55e25f3cf1b167db39a7f221bee5be639eb4 /samsung-ipc/devices/n7100/n7100.c | |
parent | 862933fe60102d23999a8668f0a6d340c9e65bf9 (diff) | |
download | hardware_replicant_libsamsung-ipc-4e8c79f65942eac32e1f6865e4cdbaff53a8b4d9.tar.gz hardware_replicant_libsamsung-ipc-4e8c79f65942eac32e1f6865e4cdbaff53a8b4d9.tar.bz2 hardware_replicant_libsamsung-ipc-4e8c79f65942eac32e1f6865e4cdbaff53a8b4d9.zip |
xmm626_sec_modem_hci_power: pass the ipc_client struct
This enables to use logging inside xmm626_sec_modem_hci_power.
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/n7100/n7100.c')
-rw-r--r-- | samsung-ipc/devices/n7100/n7100.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c index 7fec716..44e46a3 100644 --- a/samsung-ipc/devices/n7100/n7100.c +++ b/samsung-ipc/devices/n7100/n7100.c @@ -75,7 +75,7 @@ int n7100_boot(struct ipc_client *client) } ipc_client_log(client, "Opened modem link device"); - rc = xmm626_sec_modem_hci_power(0); + rc = xmm626_sec_modem_hci_power(client, 0); if (rc < 0) { ipc_client_log(client, "Turning the modem off failed"); goto error; @@ -83,7 +83,7 @@ int n7100_boot(struct ipc_client *client) ipc_client_log(client, "Turned the modem off"); rc = xmm626_sec_modem_power(client, modem_boot_fd, 1); - rc |= xmm626_sec_modem_hci_power(1); + rc |= xmm626_sec_modem_hci_power(client, 1); if (rc < 0) { ipc_client_log(client, "Turning the modem on failed"); @@ -174,7 +174,7 @@ int n7100_boot(struct ipc_client *client) } rc = xmm626_sec_modem_link_control_enable(modem_link_fd, 0); - rc |= xmm626_sec_modem_hci_power(0); + rc |= xmm626_sec_modem_hci_power(client, 0); rc |= xmm626_sec_modem_link_control_active(modem_link_fd, 0); if (rc < 0) { @@ -190,7 +190,7 @@ int n7100_boot(struct ipc_client *client) ipc_client_log(client, "Waited for host wake"); rc = xmm626_sec_modem_link_control_enable(modem_link_fd, 1); - rc |= xmm626_sec_modem_hci_power(1); + rc |= xmm626_sec_modem_hci_power(client, 1); rc |= xmm626_sec_modem_link_control_active(modem_link_fd, 1); if (rc < 0) { |