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