diag: Use smd modularization to reduce code footprint

There are instances of replicated code that can be removed
by taking advantage of the smd modularization. Reorganize
code to remove replicated code and make use of the smd
modularization.

Change-Id: If2ef5fc914042bfe9807747ed6f2ef0c5ec8e0c2
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
diff --git a/drivers/char/diag/diagfwd.h b/drivers/char/diag/diagfwd.h
index b7f4aba..14e2dd5 100644
--- a/drivers/char/diag/diagfwd.h
+++ b/drivers/char/diag/diagfwd.h
@@ -37,7 +37,7 @@
 void encode_rsp_and_send(int buf_length);
 void diag_smd_notify(void *ctxt, unsigned event);
 int diag_smd_constructor(struct diag_smd_info *smd_info, int peripheral,
-			 int type, uint16_t peripheral_mask);
+			 int type);
 void diag_smd_destructor(struct diag_smd_info *smd_info);
 /* State for diag forwarding */
 #ifdef CONFIG_DIAG_OVER_USB