[PATCH 2/3] Inline release_id in voicecall.c
Zhang, Zhenhua
zhenhua.zhang at intel.com
Tue Oct 27 20:13:04 PDT 2009
Hi,
Zhang, Zhenhua wrote:
> Inline release_id() in voicecall.c
> ---
> drivers/atmodem/voicecall.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
> index f0c8d93..51b3a19 100644
> --- a/drivers/atmodem/voicecall.c
> +++ b/drivers/atmodem/voicecall.c
> @@ -104,7 +104,7 @@ static unsigned int alloc_next_id(struct
> voicecall_data *d) return 0;
> }
>
> -static void release_id(struct voicecall_data *d, unsigned int id)
> +static inline void release_id(struct voicecall_data *d, unsigned int
> id) {
> d->id_list &= ~(0x1 << id);
> }
alloc_next_id and release_id are renamed to add 'at_util' prefix and
put into atutil.c. The parameter 'unsigned int *id_list' replaces 'struct
voicecall_data *d' so that we could share them by atmodem and
hfpmodem.
Please review attached update patch.
Regards,
Zhenhua
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Move-and-rename-alloc_next_id-and-release_id-into-at.patch
Type: application/octet-stream
Size: 3070 bytes
Desc: 0002-Move-and-rename-alloc_next_id-and-release_id-into-at.patch
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20091028/214067f6/attachment.obj>
More information about the ofono
mailing list