diff options
author | Simon Busch <morphis@gravedo.de> | 2012-08-08 15:57:50 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-08-08 15:57:50 +0200 |
commit | 7a9ad8c635c3cc8993aaa4c1509eea8745d56069 (patch) | |
tree | 46fba484b2ff69c7b30ca90799a17d48a4d01240 /samsung-ipc/device | |
parent | 7d6f56c4f67416658c0b490d828ffe0938381f5f (diff) | |
download | external_libsamsung-ipc-7a9ad8c635c3cc8993aaa4c1509eea8745d56069.zip external_libsamsung-ipc-7a9ad8c635c3cc8993aaa4c1509eea8745d56069.tar.gz external_libsamsung-ipc-7a9ad8c635c3cc8993aaa4c1509eea8745d56069.tar.bz2 |
Simplify open/close handler signature
Diffstat (limited to 'samsung-ipc/device')
-rw-r--r-- | samsung-ipc/device/crespo/crespo_ipc.c | 5 | ||||
-rw-r--r-- | samsung-ipc/device/xmm6260/xmm6260_ipc.c | 5 | ||||
-rw-r--r-- | samsung-ipc/device/xmm6260/xmm6260_ipc.h | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c index 561909d..aeac266 100644 --- a/samsung-ipc/device/crespo/crespo_ipc.c +++ b/samsung-ipc/device/crespo/crespo_ipc.c @@ -451,9 +451,8 @@ int crespo_ipc_rfs_client_recv(struct ipc_client *client, struct ipc_message_inf return 0; } -int crespo_ipc_open(void *data, unsigned int size, void *io_data) +int crespo_ipc_open(int type, void *io_data) { - int type = *((int *) data); int fd = -1; switch(type) @@ -479,7 +478,7 @@ int crespo_ipc_open(void *data, unsigned int size, void *io_data) return 0; } -int crespo_ipc_close(void *data, unsigned int size, void *io_data) +int crespo_ipc_close(void *io_data) { int fd = -1; diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c index 4b089c8..5f4aad1 100644 --- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c +++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c @@ -211,9 +211,8 @@ int xmm6260_ipc_rfs_client_send(struct ipc_client *client, struct ipc_message_in return rc; } -int xmm6260_ipc_open(void *data, unsigned int size, void *io_data) +int xmm6260_ipc_open(int type, void *io_data) { - int type = *((int *) data); int fd = -1; switch(type) @@ -239,7 +238,7 @@ int xmm6260_ipc_open(void *data, unsigned int size, void *io_data) return 0; } -int xmm6260_ipc_close(void *data, unsigned int size, void *io_data) +int xmm6260_ipc_close(void *io_data) { int fd = -1; diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.h b/samsung-ipc/device/xmm6260/xmm6260_ipc.h index 5850991..58bd8a2 100644 --- a/samsung-ipc/device/xmm6260/xmm6260_ipc.h +++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.h @@ -40,8 +40,8 @@ int xmm6260_ipc_fmt_client_send(struct ipc_client *client, struct ipc_message_in int xmm6260_ipc_fmt_client_recv(struct ipc_client *client, struct ipc_message_info *response); int xmm6260_ipc_rfs_client_recv(struct ipc_client *client, struct ipc_message_info *response); int xmm6260_ipc_rfs_client_send(struct ipc_client *client, struct ipc_message_info *request); -int xmm6260_ipc_open(void *data, unsigned int size, void *io_data); -int xmm6260_ipc_close(void *data, unsigned int size, void *io_data); +int xmm6260_ipc_open(int type, void *io_data); +int xmm6260_ipc_close(void *io_data); int xmm6260_ipc_read(void *data, unsigned int size, void *io_data); int xmm6260_ipc_write(void *data, unsigned int size, void *io_data); int xmm6260_ipc_power_on(void *io_data); |