]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mfd: Introduce remove_script function for twl4030
authorMike Turquette <mturquette@ti.com>
Mon, 22 Feb 2010 17:16:30 +0000 (11:16 -0600)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:17:32 +0000 (22:17 +0100)
commit11a441ce82d6ffecfd39b324024de0cd630b36c1
treec220e9954055e4c9c0c8f556811de11a56e91092
parent3d8ca8c0b9fe42d005360e255fbf7a6f8580ef87
mfd: Introduce remove_script function for twl4030

New function twl4030_remove_script(u8 flags) takes a script type as
defined in twl.h and prevents any script already loaded in that position
from running.  This is accomplished by programming SEQ_ADD_* to 0x3f,
the END_OF_SCRIPT value, where SEQ_ADD_* is determined by flags.

(Future) users of this function include OMAP board files for machines
facing a race condition between sleep and warm reset.

Signed-off-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-power.c
include/linux/i2c/twl.h