aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/crespo/crespo.c
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/crespo/crespo.c
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/crespo/crespo.c')
-rw-r--r--samsung-ipc/devices/crespo/crespo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/samsung-ipc/devices/crespo/crespo.c b/samsung-ipc/devices/crespo/crespo.c
index 206f43b..b89f3cf 100644
--- a/samsung-ipc/devices/crespo/crespo.c
+++ b/samsung-ipc/devices/crespo/crespo.c
@@ -460,7 +460,8 @@ int crespo_poll(void *data, struct ipc_poll_fds *fds, struct timeval *timeout)
return rc;
}
-int crespo_power_on(__attribute__((unused)) void *data)
+int crespo_power_on(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data)
{
int fd;
int rc;
@@ -479,7 +480,8 @@ int crespo_power_on(__attribute__((unused)) void *data)
return 0;
}
-int crespo_power_off(__attribute__((unused)) void *data)
+int crespo_power_off(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data)
{
int fd;
int rc;