OSDN Git Service

mfd: twl-core: Clean up module id lookup and definitions
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:50 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:49 +0000 (00:22 +0100)
commit5d4e9bd79a5ab5bd4695d3becaa71da447a76a94
tree1135e16a579f105c9eabc259fe4e3afaf129cfd0
parentc6dc96467ad94e3fe848d883d3a5a7e18a387abd
mfd: twl-core: Clean up module id lookup and definitions

Use enums for all module definitions:
twl_module_ids for common functionality among twl4030/twl6030
twl4030_module_ids for twl4030 specific ids
twl6030_module_ids for twl6030 specific ids

In this way the list can be managed easier when new functionality going to
be implemented.

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