mfd: twl-core: Use the lookup table to find the correct subchip for the modules
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:52 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:50 +0000 (00:22 +0100)
commit3c3302794cc79b363779a762051ebe8670812791
tree1726b75b546886a8d43968577d391736be0232fa
parent050cde1363a3fc59f2a2f1cac6ef050393a00c99
mfd: twl-core: Use the lookup table to find the correct subchip for the modules

Instead of using SUB_CHIP_ID* or magic numbers use the twl_mapping table to
look for the subchip ID.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c