aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/n7100
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-20 18:27:28 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-21 00:53:50 +0100
commite03710c1f462f74ac6bea5f03047feae9a81a866 (patch)
tree77d0e06d600ffaa269922edd289e45c528987e62 /samsung-ipc/devices/n7100
parent9b755d1be592d17be3e84f73fc444441d6cd4082 (diff)
downloadhardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.tar.gz
hardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.tar.bz2
hardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.zip
device 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/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 70dae5d..08f1652 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -305,12 +305,14 @@ int n7100_poll(void *data, struct ipc_poll_fds *fds, struct timeval *timeout)
return rc;
}
-int n7100_power_on(__attribute__((unused)) void *data)
+int n7100_power_on(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data)
{
return 0;
}
-int n7100_power_off(__attribute__((unused)) void *data)
+int n7100_power_off(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data)
{
int fd;
int rc;