summaryrefslogtreecommitdiff
path: root/nuttx/drivers/pm/pm_changestate.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-04 22:16:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-04 22:16:10 +0000
commitcc34367c9f9c0807f69cc1a987d25be19fd83c23 (patch)
tree5f6701e91b717ba6f346835ce4cfb65c162080c8 /nuttx/drivers/pm/pm_changestate.c
parent7e1e02b8a0fc6f448892b82203a4a77606eb83c9 (diff)
downloadpx4-nuttx-cc34367c9f9c0807f69cc1a987d25be19fd83c23.tar.gz
px4-nuttx-cc34367c9f9c0807f69cc1a987d25be19fd83c23.tar.bz2
px4-nuttx-cc34367c9f9c0807f69cc1a987d25be19fd83c23.zip
Update PM documentation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3937 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/pm/pm_changestate.c')
-rw-r--r--nuttx/drivers/pm/pm_changestate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/drivers/pm/pm_changestate.c b/nuttx/drivers/pm/pm_changestate.c
index e98e46236..50fa0640f 100644
--- a/nuttx/drivers/pm/pm_changestate.c
+++ b/nuttx/drivers/pm/pm_changestate.c
@@ -77,7 +77,7 @@
* Prepare every driver for the state change.
*
* Input Parameters:
- * newstate - Idenfifies the new PM state
+ * newstate - Identifies the new PM state
*
* Returned Value:
* 0 (OK) means that the callback function for all registered drivers
@@ -122,7 +122,7 @@ static int pm_prepall(enum pm_state_e newstate)
* Inform all drivers of the state change.
*
* Input Parameters:
- * newstate - Idenfifies the new PM state
+ * newstate - Identifies the new PM state
*
* Returned Value:
* None
@@ -147,7 +147,7 @@ static inline void pm_changeall(enum pm_state_e newstate)
{
/* Yes.. notify the driver */
- (void)cb->notify(cb, newstate);
+ cb->notify(cb, newstate);
}
}
}
@@ -160,12 +160,12 @@ static inline void pm_changeall(enum pm_state_e newstate)
* Name: pm_changestate
*
* Description:
- * This function is used to platform-specific power managmeent logic. It
+ * This function is used by platform-specific power management logic. It
* will announce the power management power management state change to all
* drivers that have registered for power management event callbacks.
*
* Input Parameters:
- * newstate - Idenfifies the new PM state
+ * newstate - Identifies the new PM state
*
* Returned Value:
* 0 (OK) means that the callback function for all registered drivers