aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/devices/aries/aries.c8
-rw-r--r--samsung-ipc/devices/crespo/crespo.c6
-rw-r--r--samsung-ipc/devices/galaxys2/galaxys2.c6
-rw-r--r--samsung-ipc/devices/i9300/i9300.c6
-rw-r--r--samsung-ipc/devices/maguro/maguro.c6
-rw-r--r--samsung-ipc/devices/n5100/n5100.c6
-rw-r--r--samsung-ipc/devices/n7100/n7100.c6
-rw-r--r--samsung-ipc/devices/piranha/piranha.c6
-rw-r--r--samsung-ipc/ipc.c12
-rw-r--r--samsung-ipc/ipc.h6
10 files changed, 44 insertions, 24 deletions
diff --git a/samsung-ipc/devices/aries/aries.c b/samsung-ipc/devices/aries/aries.c
index 3e5f681..2e73b86 100644
--- a/samsung-ipc/devices/aries/aries.c
+++ b/samsung-ipc/devices/aries/aries.c
@@ -779,8 +779,8 @@ int aries_data_destroy(void *transport_data,
return 0;
}
-int aries_gprs_activate(__attribute__((unused)) void *data,
- unsigned int cid)
+int aries_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data, unsigned int cid)
{
int rc;
@@ -791,8 +791,8 @@ int aries_gprs_activate(__attribute__((unused)) void *data,
return 0;
}
-int aries_gprs_deactivate(__attribute__((unused)) void *data,
- unsigned int cid)
+int aries_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data, unsigned int cid)
{
int rc;
diff --git a/samsung-ipc/devices/crespo/crespo.c b/samsung-ipc/devices/crespo/crespo.c
index 89bf67b..97a6ac3 100644
--- a/samsung-ipc/devices/crespo/crespo.c
+++ b/samsung-ipc/devices/crespo/crespo.c
@@ -529,13 +529,15 @@ int crespo_data_destroy(void *transport_data,
return 0;
}
-int crespo_gprs_activate(__attribute__((unused)) void *data,
+int crespo_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int crespo_gprs_deactivate(__attribute__((unused)) void *data,
+int crespo_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/galaxys2/galaxys2.c b/samsung-ipc/devices/galaxys2/galaxys2.c
index 3529cf5..78101e4 100644
--- a/samsung-ipc/devices/galaxys2/galaxys2.c
+++ b/samsung-ipc/devices/galaxys2/galaxys2.c
@@ -342,13 +342,15 @@ int galaxys2_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int galaxys2_gprs_activate(__attribute__((unused)) void *data,
+int galaxys2_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int galaxys2_gprs_deactivate(__attribute__((unused)) void *data,
+int galaxys2_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/i9300/i9300.c b/samsung-ipc/devices/i9300/i9300.c
index ba1481b..50f758d 100644
--- a/samsung-ipc/devices/i9300/i9300.c
+++ b/samsung-ipc/devices/i9300/i9300.c
@@ -335,13 +335,15 @@ int i9300_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int i9300_gprs_activate(__attribute__((unused)) void *data,
+int i9300_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int i9300_gprs_deactivate(__attribute__((unused)) void *data,
+int i9300_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/maguro/maguro.c b/samsung-ipc/devices/maguro/maguro.c
index 7b4c6be..2ccda66 100644
--- a/samsung-ipc/devices/maguro/maguro.c
+++ b/samsung-ipc/devices/maguro/maguro.c
@@ -319,13 +319,15 @@ int maguro_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int maguro_gprs_activate(__attribute__((unused)) void *data,
+int maguro_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int maguro_gprs_deactivate(__attribute__((unused)) void *data,
+int maguro_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/n5100/n5100.c b/samsung-ipc/devices/n5100/n5100.c
index 1120c99..ea5e9be 100644
--- a/samsung-ipc/devices/n5100/n5100.c
+++ b/samsung-ipc/devices/n5100/n5100.c
@@ -336,13 +336,15 @@ int n5100_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int n5100_gprs_activate(__attribute__((unused)) void *data,
+int n5100_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int n5100_gprs_deactivate(__attribute__((unused)) void *data,
+int n5100_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c
index c9c0919..4fd800f 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -335,13 +335,15 @@ int n7100_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int n7100_gprs_activate(__attribute__((unused)) void *data,
+int n7100_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int n7100_gprs_deactivate(__attribute__((unused)) void *data,
+int n7100_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/devices/piranha/piranha.c b/samsung-ipc/devices/piranha/piranha.c
index 12f4e47..8f52216 100644
--- a/samsung-ipc/devices/piranha/piranha.c
+++ b/samsung-ipc/devices/piranha/piranha.c
@@ -284,13 +284,15 @@ int piranha_power_off(__attribute__((unused)) struct ipc_client *client,
return 0;
}
-int piranha_gprs_activate(__attribute__((unused)) void *data,
+int piranha_gprs_activate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
}
-int piranha_gprs_deactivate(__attribute__((unused)) void *data,
+int piranha_gprs_deactivate(__attribute__((unused)) struct ipc_client *client,
+ __attribute__((unused)) void *data,
__attribute__((unused)) unsigned int cid)
{
return 0;
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index c52911b..4359e45 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -303,8 +303,10 @@ int ipc_client_power_handlers_register(struct ipc_client *client,
}
int ipc_client_gprs_handlers_register(struct ipc_client *client,
- int (*gprs_activate)(void *gprs_data, unsigned int cid),
- int (*gprs_deactivate)(void *gprs_data, unsigned int cid), void *gprs_data)
+ int (*gprs_activate)(struct ipc_client *client, void *gprs_data,
+ unsigned int cid),
+ int (*gprs_deactivate)(struct ipc_client *client, void *gprs_data,
+ unsigned int cid), void *gprs_data)
{
if (client == NULL || client->handlers == NULL)
return -1;
@@ -453,7 +455,8 @@ int ipc_client_gprs_activate(struct ipc_client *client, unsigned int cid)
return -1;
}
- return client->handlers->gprs_activate(client->handlers->gprs_data, cid);
+ return client->handlers->gprs_activate(client, client->handlers->gprs_data,
+ cid);
}
int ipc_client_gprs_deactivate(struct ipc_client *client, unsigned int cid)
@@ -463,7 +466,8 @@ int ipc_client_gprs_deactivate(struct ipc_client *client, unsigned int cid)
return -1;
}
- return client->handlers->gprs_deactivate(client->handlers->gprs_data, cid);
+ return client->handlers->gprs_deactivate(client,
+ client->handlers->gprs_data, cid);
}
int ipc_client_data_create(struct ipc_client *client)
diff --git a/samsung-ipc/ipc.h b/samsung-ipc/ipc.h
index 7c7f314..e6ca664 100644
--- a/samsung-ipc/ipc.h
+++ b/samsung-ipc/ipc.h
@@ -57,8 +57,10 @@ struct ipc_client_handlers {
void *power_data;
/* GPRS handlers */
- int (*gprs_activate)(void *gprs_data, unsigned int cid);
- int (*gprs_deactivate)(void *gprs_data, unsigned int cid);
+ int (*gprs_activate)(struct ipc_client *client, void *gprs_data,
+ unsigned int cid);
+ int (*gprs_deactivate)(struct ipc_client *client, void *gprs_data,
+ unsigned int cid);
void *gprs_data;