mfd: Fix TWL4030 COR bit polarity for BCI SIH block
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 28 Sep 2010 13:22:19 +0000 (16:22 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:04 +0000 (00:30 +0200)
commit8e52e279b241d3a22d52c10a5f934db18b7d0a1b
tree7e90a6286246da448c67b8a016a638b23c485406
parenta28dbea0ad3bd8144f3348eb5c20fabc2f12b4b5
mfd: Fix TWL4030 COR bit polarity for BCI SIH block

The chip TRM documentation contradicts itself about this bit, page 174
of swcu050e says bit should be 0 for clear-on-read behavior, while
page 487 says it should be 1. Testing shows it should be 1, so set
the .set_cor flag accordingly. This is needed for upcoming BCI
charging driver to function.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-irq.c