aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/device
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2012-02-03 20:21:36 +0100
committerPaulK <contact@paulk.fr>2012-02-03 20:21:36 +0100
commit1789f2ac0766851f078c754fe31cb87a6f013184 (patch)
treeeff2fb521bcaea6b67771e95cb3849e4fd156761 /samsung-ipc/device
parenta1de0dcad9e1bcf8d9293eefb601b05a18fc7c9b (diff)
downloadexternal_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.zip
external_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.gz
external_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.bz2
Modified ipc devices handling to use a table and permit explicit device name
Diffstat (limited to 'samsung-ipc/device')
-rw-r--r--samsung-ipc/device/aries/aries_ipc.c6
-rw-r--r--samsung-ipc/device/crespo/crespo_ipc.c6
-rw-r--r--samsung-ipc/device/h1/h1_ipc.c4
3 files changed, 2 insertions, 14 deletions
diff --git a/samsung-ipc/device/aries/aries_ipc.c b/samsung-ipc/device/aries/aries_ipc.c
index 5010017..7f6749d 100644
--- a/samsung-ipc/device/aries/aries_ipc.c
+++ b/samsung-ipc/device/aries/aries_ipc.c
@@ -941,10 +941,4 @@ struct ipc_ops aries_rfs_ops = {
.bootstrap = NULL,
};
-void aries_ipc_register(void)
-{
- ipc_register_device_client_handlers(IPC_DEVICE_ARIES, &aries_fmt_ops,
- &aries_rfs_ops, &aries_default_handlers);
-}
-
// vim:ts=4:sw=4:expandtab
diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c
index 0ce7830..556d77c 100644
--- a/samsung-ipc/device/crespo/crespo_ipc.c
+++ b/samsung-ipc/device/crespo/crespo_ipc.c
@@ -717,10 +717,4 @@ struct ipc_ops crespo_rfs_ops = {
.bootstrap = NULL,
};
-void crespo_ipc_register(void)
-{
- ipc_register_device_client_handlers(IPC_DEVICE_CRESPO, &crespo_fmt_ops,
- &crespo_rfs_ops, &crespo_default_handlers);
-}
-
// vim:ts=4:sw=4:expandtab
diff --git a/samsung-ipc/device/h1/h1_ipc.c b/samsung-ipc/device/h1/h1_ipc.c
index 8363449..1f6b825 100644
--- a/samsung-ipc/device/h1/h1_ipc.c
+++ b/samsung-ipc/device/h1/h1_ipc.c
@@ -263,7 +263,7 @@ int h1_ipc_common_data_get_fd(void *io_data)
return (int) *(common_data);
}
-struct ipc_handlers ipc_default_handlers = {
+struct ipc_handlers h1_default_handlers = {
.open = h1_ipc_open,
.close = h1_ipc_close,
.power_on = h1_ipc_power_on,
@@ -277,7 +277,7 @@ struct ipc_handlers ipc_default_handlers = {
.common_data_get_fd = h1_ipc_common_data_get_fd,
};
-struct ipc_ops ipc_fmt_ops = {
+struct ipc_ops h1_fmt_ops = {
.send = h1_ipc_send,
.recv = h1_ipc_recv,
.bootstrap = NULL,