summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-31 22:50:04 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-03-31 22:50:04 +0200
commit79ab28a95dbc9443b6c883c604a9a8f240b8a74c (patch)
tree61abae0b7f5ef387a6433c4b27d9800bf6749fac
parentab6eef687bc891e3e47edd43cee7e39336d30d26 (diff)
downloadhardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.zip
hardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.tar.gz
hardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.tar.bz2
Coding style: add spaces after switch statements
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--gprs.c4
-rw-r--r--misc.c2
-rw-r--r--net.c20
-rw-r--r--samsung-ril.c8
-rw-r--r--sec.c8
-rw-r--r--sms.c4
-rw-r--r--snd.c4
-rw-r--r--ss.c6
8 files changed, 28 insertions, 28 deletions
diff --git a/gprs.c b/gprs.c
index 37424f8..583c858 100644
--- a/gprs.c
+++ b/gprs.c
@@ -39,7 +39,7 @@ RIL_DataCallFailCause ipc2ril_gprs_fail_cause(unsigned short fail_cause)
RIL_LastDataCallActivateFailCause ipc2ril_gprs_fail_cause(unsigned short fail_cause)
#endif
{
- switch(fail_cause) {
+ switch (fail_cause) {
case IPC_GPRS_FAIL_INSUFFICIENT_RESOURCES:
return PDP_FAIL_INSUFFICIENT_RESOURCES;
@@ -68,7 +68,7 @@ RIL_LastDataCallActivateFailCause ipc2ril_gprs_fail_cause(unsigned short fail_ca
int ipc2ril_gprs_connection_active(unsigned char state)
{
- switch(state) {
+ switch (state) {
case IPC_GPRS_STATE_DISABLED:
return 1;
case IPC_GPRS_STATE_ENABLED:
diff --git a/misc.c b/misc.c
index 95128b5..899afde 100644
--- a/misc.c
+++ b/misc.c
@@ -145,7 +145,7 @@ void ipc_misc_me_sn(struct ipc_message_info *info)
me_sn_info = (struct ipc_misc_me_sn *) info->data;
- switch(me_sn_info->type) {
+ switch (me_sn_info->type) {
case IPC_MISC_ME_SN_SERIAL_NUM:
ipc_misc_me_sn_imei(info);
break;
diff --git a/net.c b/net.c
index cb4774a..92a39fe 100644
--- a/net.c
+++ b/net.c
@@ -29,7 +29,7 @@
unsigned char ipc2ril_reg_state(unsigned char reg_state)
{
- switch(reg_state) {
+ switch (reg_state) {
case IPC_NET_REGISTRATION_STATE_NONE:
return 0;
case IPC_NET_REGISTRATION_STATE_HOME:
@@ -50,7 +50,7 @@ unsigned char ipc2ril_reg_state(unsigned char reg_state)
unsigned char ipc2ril_act(unsigned char act)
{
- switch(act) {
+ switch (act) {
case IPC_NET_ACCESS_TECHNOLOGY_GPRS:
return 1;
case IPC_NET_ACCESS_TECHNOLOGY_EDGE:
@@ -66,7 +66,7 @@ unsigned char ipc2ril_act(unsigned char act)
unsigned char ipc2ril_gprs_act(unsigned char act)
{
- switch(act) {
+ switch (act) {
case IPC_NET_ACCESS_TECHNOLOGY_GPRS:
return 1;
case IPC_NET_ACCESS_TECHNOLOGY_EDGE:
@@ -82,7 +82,7 @@ unsigned char ipc2ril_gprs_act(unsigned char act)
int ipc2ril_mode_sel(unsigned char mode)
{
- switch(mode) {
+ switch (mode) {
case 0:
return 7; // auto mode
case IPC_NET_MODE_SEL_GSM_UMTS:
@@ -98,7 +98,7 @@ int ipc2ril_mode_sel(unsigned char mode)
unsigned char ril2ipc_mode_sel(int mode)
{
- switch(mode) {
+ switch (mode) {
case 1: // GSM only
return IPC_NET_MODE_SEL_GSM_ONLY;
case 2: // WCDMA only
@@ -111,7 +111,7 @@ unsigned char ril2ipc_mode_sel(int mode)
int ipc2ril_plmn_sel(unsigned char mode)
{
- switch(mode) {
+ switch (mode) {
case IPC_NET_PLMN_SEL_MANUAL:
return 1;
case IPC_NET_PLMN_SEL_AUTO:
@@ -123,7 +123,7 @@ int ipc2ril_plmn_sel(unsigned char mode)
unsigned char ril2ipc_plmn_sel(int mode)
{
- switch(mode) {
+ switch (mode) {
case 0:
return IPC_NET_PLMN_SEL_AUTO;
case 1:
@@ -553,7 +553,7 @@ void ipc_net_regist_unsol(struct ipc_message_info *info)
LOGD("Got UNSOL NetRegist message");
- switch(netinfo->domain) {
+ switch (netinfo->domain) {
case IPC_NET_SERVICE_DOMAIN_GSM:
if (ril_data.tokens.registration_state != RIL_TOKEN_NULL && ril_data.tokens.registration_state != RIL_TOKEN_DATA_WAITING) {
LOGE("Another NetRegist Req is in progress, skipping");
@@ -625,7 +625,7 @@ void ipc_net_regist_sol(struct ipc_message_info *info)
LOGD("Got SOL NetRegist message");
- switch(netinfo->domain) {
+ switch (netinfo->domain) {
case IPC_NET_SERVICE_DOMAIN_GSM:
if (ril_data.tokens.registration_state != t)
LOGE("Registration state tokens mismatch");
@@ -686,7 +686,7 @@ void ipc_net_regist(struct ipc_message_info *info)
if (ril_data.state.power_state != IPC_PWR_PHONE_STATE_NORMAL)
return;
- switch(info->type) {
+ switch (info->type) {
case IPC_TYPE_NOTI:
ipc_net_regist_unsol(info);
break;
diff --git a/samsung-ril.c b/samsung-ril.c
index 25dc077..45070fe 100644
--- a/samsung-ril.c
+++ b/samsung-ril.c
@@ -279,7 +279,7 @@ void ipc_fmt_dispatch(struct ipc_message_info *info)
ril_request_id_set(info->aseq);
- switch(IPC_COMMAND(info)) {
+ switch (IPC_COMMAND(info)) {
/* GEN */
case IPC_GEN_PHONE_RES:
ipc_gen_phone_res(info);
@@ -413,7 +413,7 @@ void ipc_rfs_dispatch(struct ipc_message_info *info)
RIL_LOCK();
- switch(IPC_COMMAND(info)) {
+ switch (IPC_COMMAND(info)) {
case IPC_RFS_NV_READ_ITEM:
ipc_rfs_nv_read_item(info);
break;
@@ -435,7 +435,7 @@ void srs_dispatch(struct srs_message *message)
RIL_LOCK();
- switch(message->command) {
+ switch (message->command) {
case SRS_CONTROL_PING:
srs_control_ping(message);
break;
@@ -464,7 +464,7 @@ void ril_on_request(int request, void *data, size_t length, RIL_Token t)
{
RIL_LOCK();
- switch(request) {
+ switch (request) {
/* PWR */
case RIL_REQUEST_RADIO_POWER:
ril_request_radio_power(t, data, length);
diff --git a/sec.c b/sec.c
index c23312c..06ccbb3 100644
--- a/sec.c
+++ b/sec.c
@@ -32,9 +32,9 @@ ril_sim_state ipc2ril_sim_state(struct ipc_sec_sim_status_response *pin_status)
if (pin_status == NULL)
return -EINVAL;
- switch(pin_status->status) {
+ switch (pin_status->status) {
case IPC_SEC_SIM_STATUS_LOCK_SC:
- switch(pin_status->facility_lock) {
+ switch (pin_status->facility_lock) {
case IPC_SEC_FACILITY_LOCK_TYPE_SC_UNLOCKED:
return SIM_STATE_READY;
case IPC_SEC_FACILITY_LOCK_TYPE_SC_PIN1_REQ:
@@ -83,7 +83,7 @@ void ril_state_update(ril_sim_state sim_state)
ril_data.state.sim_state = sim_state;
- switch(sim_state) {
+ switch (sim_state) {
case SIM_STATE_READY:
#if RIL_VERSION >= 7
radio_state = RADIO_STATE_ON;
@@ -220,7 +220,7 @@ void ipc_sec_sim_status(struct ipc_message_info *info)
pin_status = (struct ipc_sec_sim_status_response *) info->data;
t = ril_request_get_token(info->aseq);
- switch(info->type) {
+ switch (info->type) {
case IPC_TYPE_NOTI:
// Don't consider this if modem isn't in normal power mode
if (ril_data.state.power_state != IPC_PWR_PHONE_STATE_NORMAL)
diff --git a/sms.c b/sms.c
index 1369fc8..6318cde 100644
--- a/sms.c
+++ b/sms.c
@@ -30,7 +30,7 @@ unsigned short ril2ipc_sms_ack_error(int success, int failcause)
if (success) {
return IPC_SMS_ACK_NO_ERROR;
} else {
- switch(failcause) {
+ switch (failcause) {
case 0xD3:
return IPC_SMS_ACK_PDA_FULL_ERROR;
default:
@@ -46,7 +46,7 @@ RIL_Errno ipc2ril_sms_ack_error(unsigned short error, int *error_code)
if (error_code == NULL)
return RIL_E_GENERIC_FAILURE;
- switch(error) {
+ switch (error) {
case IPC_SMS_ACK_NO_ERROR:
*error_code = -1;
return RIL_E_SUCCESS;
diff --git a/snd.c b/snd.c
index ee68aad..bdf2ac8 100644
--- a/snd.c
+++ b/snd.c
@@ -26,7 +26,7 @@
unsigned char srs2ipc_call_type(int type)
{
- switch(type) {
+ switch (type) {
case SRS_SND_TYPE_VOICE:
return IPC_SND_VOLUME_TYPE_VOICE;
case SRS_SND_TYPE_SPEAKER:
@@ -43,7 +43,7 @@ unsigned char srs2ipc_call_type(int type)
unsigned char srs2ipc_audio_path(int path)
{
- switch(path) {
+ switch (path) {
case SRS_SND_PATH_HANDSET:
return IPC_SND_AUDIO_PATH_HANDSET;
case SRS_SND_PATH_HEADSET:
diff --git a/ss.c b/ss.c
index a2483fa..ace3210 100644
--- a/ss.c
+++ b/ss.c
@@ -57,7 +57,7 @@ void ril_request_send_ussd(RIL_Token t, void *data, size_t length)
if (data == NULL || length < (int) sizeof(char *))
goto error;
- switch(ril_data.state.ussd_state) {
+ switch (ril_data.state.ussd_state) {
case 0:
case IPC_SS_USSD_NO_ACTION_REQUIRE:
case IPC_SS_USSD_TERMINATED_BY_NET:
@@ -156,7 +156,7 @@ void ipc2ril_ussd_state(struct ipc_ss_ussd *ussd, char *message[2])
if (ussd == NULL || message == NULL)
return;
- switch(ussd->state) {
+ switch (ussd->state) {
case IPC_SS_USSD_NO_ACTION_REQUIRE:
asprintf(&message[0], "%d", 0);
break;
@@ -202,7 +202,7 @@ void ipc_ss_ussd(struct ipc_message_info *info)
if (ussd->length > 0 && info->length > 0 && info->data != NULL) {
codingScheme = sms_get_coding_scheme(ussd->dcs);
- switch(codingScheme) {
+ switch (codingScheme) {
case SMS_CODING_SCHEME_GSM7:
LOGD("USSD Rx encoding is GSM7");