summaryrefslogtreecommitdiffstats
path: root/drivers/stemodem
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-02-05 05:03:03 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-02-05 05:09:24 -0800
commitc70805bdeed33d65f8cf5c58eb68d656fe990948 (patch)
treef0fbae199956adbd44dd4eea1354372627a216da /drivers/stemodem
parentb4c8d107ade36a0e94513056d87dd15f03f3982e (diff)
downloadofono-c70805bdeed33d65f8cf5c58eb68d656fe990948.tar.bz2
stemodem: Use defined call_status enum
Diffstat (limited to 'drivers/stemodem')
-rw-r--r--drivers/stemodem/voicecall.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 4a3a83d9..b8fcf5ba 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -255,8 +255,10 @@ static void ste_hangup(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
unsigned int active_dial_alert_or_incoming =
- (0x1 << CALL_STATUS_ACTIVE) | (0x1 << CALL_STATUS_DIALING) |
- (0x1 << CALL_STATUS_ALERTING) | (0x1 << CALL_STATUS_INCOMING);
+ (1 << CALL_STATUS_ACTIVE) |
+ (1 << CALL_STATUS_DIALING) |
+ (1 << CALL_STATUS_ALERTING) |
+ (1 << CALL_STATUS_INCOMING);
ste_template("AT+CHUP", vc, ste_generic_cb,
active_dial_alert_or_incoming, cb, data);
@@ -271,7 +273,7 @@ static void ste_hold_all_active(struct ofono_voicecall *vc,
static void ste_release_all_held(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
- unsigned int held = 0x1 << CALL_STATUS_HELD;
+ unsigned int held = 1 << CALL_STATUS_HELD;
ste_template("AT+CHLD=0", vc, ste_generic_cb, held, cb, data);
}
@@ -280,7 +282,7 @@ static void ste_set_udub(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
unsigned int incoming_or_waiting =
- (0x1 << CALL_STATUS_INCOMING) | (0x1 << CALL_STATUS_WAITING);
+ (1 << CALL_STATUS_INCOMING) | (1 << CALL_STATUS_WAITING);
ste_template("AT+CHLD=0", vc, ste_generic_cb, incoming_or_waiting,
cb, data);
@@ -289,7 +291,7 @@ static void ste_set_udub(struct ofono_voicecall *vc,
static void ste_release_all_active(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
- unsigned int active = 0x1 << CALL_STATUS_ACTIVE;
+ unsigned int active = 1 << CALL_STATUS_ACTIVE;
ste_template("AT+CHLD=1", vc, ste_generic_cb, active, cb, data);
}
@@ -356,7 +358,8 @@ static void ste_deflect(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
char buf[128];
- unsigned int incoming_or_waiting = (0x1 << 4) | (0x1 << 5);
+ unsigned int incoming_or_waiting =
+ (1 << CALL_STATUS_INCOMING) | (1 << CALL_STATUS_WAITING);
snprintf(buf, sizeof(buf), "AT+CTFR=\"%s\",%d", ph->number, ph->type);
ste_template(buf, vc, ste_generic_cb, incoming_or_waiting, cb, data);