All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@profusion.mobi>
To: ofono@ofono.org
Subject: [PATCH 8/9] isimodem: use ofono_call initializer
Date: Tue, 01 Feb 2011 15:12:49 -0200	[thread overview]
Message-ID: <1296580370-2823-8-git-send-email-lucas.demarchi@profusion.mobi> (raw)
In-Reply-To: <1296580370-2823-1-git-send-email-lucas.demarchi@profusion.mobi>

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

---
 drivers/isimodem/voicecall.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c
index 6a1e582..12896f2 100644
--- a/drivers/isimodem/voicecall.c
+++ b/drivers/isimodem/voicecall.c
@@ -384,11 +384,11 @@ static int isi_call_status_to_clcc(const struct isi_call *call)
 
 static struct ofono_call isi_call_as_ofono_call(const struct isi_call *call)
 {
-	struct ofono_call ocall = {
-		call->id
-	};
+	struct ofono_call ocall;
 	struct ofono_phone_number *number = &ocall.phone_number;
 
+	ofono_call_init(&ocall);
+	ocall.id = call->id;
 	ocall.type = 0;	/* Voice call */
 	ocall.direction = call->mode_info & CALL_MODE_ORIGINATOR;
 	ocall.status = isi_call_status_to_clcc(call);
-- 
1.7.4


  parent reply	other threads:[~2011-02-01 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 17:12 [PATCH 1/9] include: define initializer for ofono_call Lucas De Marchi
2011-02-01 17:12 ` [PATCH 2/9] common: implement " Lucas De Marchi
2011-02-01 17:12 ` [PATCH 3/9] atmodem: use ofono_call initializer Lucas De Marchi
2011-02-01 17:12 ` [PATCH 4/9] calypsomodem: " Lucas De Marchi
2011-02-01 17:12 ` [PATCH 5/9] hfpmodem: " Lucas De Marchi
2011-02-01 17:12 ` [PATCH 6/9] huaweimodem: " Lucas De Marchi
2011-02-01 17:12 ` [PATCH 7/9] ifxmodem: " Lucas De Marchi
2011-02-01 17:12 ` Lucas De Marchi [this message]
2011-02-01 17:12 ` [PATCH 9/9] stemodem: " Lucas De Marchi
2011-02-01 17:32 ` [PATCH 1/9] include: define initializer for ofono_call Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1296580370-2823-8-git-send-email-lucas.demarchi@profusion.mobi \
    --to=lucas.demarchi@profusion.mobi \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.