[qca-nss-drv] Add new APIs for type specific msg init

Add new APIs for type specific msg init which inturn would
call the nss_cmn_msg_init().

Change-Id: I8cad8d3f69beef5c968b1bd09810916bbe9fc80f
Signed-off-by: Sundarajan Srinivasan <sundaraj@codeaurora.org>
diff --git a/nss_profiler.c b/nss_profiler.c
index e43afd7..841a1ea 100644
--- a/nss_profiler.c
+++ b/nss_profiler.c
@@ -106,8 +106,8 @@
 	}
 
 	npm = (struct nss_profiler_msg *)skb_put(nbuf, sizeof(npm->cm) + len);
-	nss_cmn_msg_init(&npm->cm, NSS_PROFILER_INTERFACE, pdm->hd_magic & 0xFF, len, cb, ctx);
-
+	nss_profiler_msg_init(npm, NSS_PROFILER_INTERFACE, pdm->hd_magic & 0xFF, len,
+				(nss_profiler_callback_t *)cb, ctx);
 	memcpy(&npm->payload, pdm, len);
 
 	status = nss_core_send_buffer(nss_ctx, 0, nbuf, NSS_IF_CMD_QUEUE, H2N_BUFFER_CTRL, 0);
@@ -155,7 +155,17 @@
 	nss_top_main.profiler_ctx[core_id] = NULL;
 }
 
+/*
+ * nss_profiler_msg_init()
+ *      Initialize profiler message.
+ */
+void nss_profiler_msg_init(struct nss_profiler_msg *npm, uint16_t if_num, uint32_t type, uint32_t len,
+				nss_profiler_callback_t *cb, void *app_data)
+{
+	nss_cmn_msg_init(&npm->cm, if_num, type, len, (void *)cb, app_data);
+}
+
 EXPORT_SYMBOL(nss_profiler_notify_register);
 EXPORT_SYMBOL(nss_profiler_notify_unregister);
 EXPORT_SYMBOL(nss_profiler_if_tx_buf);
-
+EXPORT_SYMBOL(nss_profiler_msg_init);