msm: sysmon: Improve API documentation

Document the API's arguments and return codes in kernel-doc
format.

Change-Id: Ifea23f93ed40adc9cc184f5ff9c9c3cb1c9d44ba
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/sysmon.h b/arch/arm/mach-msm/sysmon.h
index 5fb75bc..429a155 100644
--- a/arch/arm/mach-msm/sysmon.h
+++ b/arch/arm/mach-msm/sysmon.h
@@ -17,6 +17,9 @@
 
 #include <mach/subsystem_notif.h>
 
+/**
+ * enum subsys_id - Destination subsystems for events.
+ */
 enum subsys_id {
 	SYSMON_SS_MODEM,
 	SYSMON_SS_LPASS,
@@ -26,6 +29,20 @@
 	SYSMON_NUM_SS
 };
 
+
+/**
+ * sysmon_send_event() - Notify a subsystem of another's state change.
+ * @dest_ss:	ID of subsystem the notification should be sent to.
+ * @event_ss:	String name of the subsystem that generated the notification.
+ * @notif:	ID of the notification type (ex. SUBSYS_BEFORE_SHUTDOWN)
+ *
+ * Returns 0 for success, -EINVAL for invalid destination or notification IDs,
+ * -ENODEV if the SMD channel is not open, -ETIMEDOUT if the destination
+ * subsystem does not respond, and -ENOSYS if the destination subsystem
+ * responds, but with something other than an acknowledgement.
+ *
+ * If CONFIG_MSM_SYSMON_COMM is not defined, always return success (0).
+ */
 #ifdef CONFIG_MSM_SYSMON_COMM
 int sysmon_send_event(enum subsys_id dest_ss, const char *event_ss,
 		      enum subsys_notif_type notif);