]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAP: PM constraints: add return values; add requesting device param to omap_pm_set_m...
authorPaul Walmsley <paul@pwsan.com>
Mon, 26 Jul 2010 22:34:34 +0000 (16:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 26 Jul 2010 22:34:34 +0000 (16:34 -0600)
commit564889c1c02698d66db76764ee4e0a5e86903971
treeb6bc890e1e7910a96c004b8be5fc825178bd290b
parent887adeac28a3e354ebb3f9aeca6fc2296c105267
OMAP: PM constraints: add return values; add requesting device param to omap_pm_set_max_dev_wakeup_lat()

Add return values to the PM constraint functions.  This allows the PM
core to provide feedback to the caller if a constraint is not
possible.  Update the one upstream user of omap_pm_set_max_mpu_wakeup_lat()
to add a compatibility wrapper, needed until the driver is changed.

Update some of the documentation to conform more closely to kerneldoc style.

Add an additional device parameter to omap_pm_set_max_dev_wakeup_lat()
to identify the device requesting the constraint.  This is so repeated calls
to omap_pm_set_max_dev_wakeup_lat() with the same requesting device can
override the device's previously-set constraint.  Also, it allows the PM
core to make a decision as to whether or not the constraint should be
satisfied, based on the caller's identity.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/i2c.c
arch/arm/plat-omap/include/plat/omap-pm.h
arch/arm/plat-omap/omap-pm-noop.c