aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/n7100
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-28 22:42:00 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-28 22:44:07 +0100
commit49db12d40b5db434b77e3b40ac711c5d40e4771a (patch)
treea7c9430b5399f92c3fe1171154b5c5cdcb3fed1e /samsung-ipc/devices/n7100
parentc8960d3f893f9034a02771eca5e0a4c19af2bdbf (diff)
downloadhardware_replicant_libsamsung-ipc-49db12d40b5db434b77e3b40ac711c5d40e4771a.tar.gz
hardware_replicant_libsamsung-ipc-49db12d40b5db434b77e3b40ac711c5d40e4771a.tar.bz2
hardware_replicant_libsamsung-ipc-49db12d40b5db434b77e3b40ac711c5d40e4771a.zip
devices: data_create/data_destroy handlers: 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>
Diffstat (limited to 'samsung-ipc/devices/n7100')
-rw-r--r--samsung-ipc/devices/n7100/n7100.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c
index 4fd800f..384a863 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -349,7 +349,8 @@ int n7100_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int n7100_data_create(void **transport_data,
+int n7100_data_create(__attribute__((unused)) struct ipc_client *client,
+ void **transport_data,
__attribute__((unused)) void **power_data,
__attribute__((unused)) void **gprs_data)
{
@@ -361,7 +362,8 @@ int n7100_data_create(void **transport_data,
return 0;
}
-int n7100_data_destroy(void *transport_data,
+int n7100_data_destroy(__attribute__((unused)) struct ipc_client *client,
+ void *transport_data,
__attribute__((unused)) void *power_data,
__attribute__((unused)) void *gprs_data)
{