regulators: max8660: use i2c_id->driver_data rather than ->name
authorDaniel Mack <zonque@gmail.com>
Fri, 2 Aug 2013 08:19:15 +0000 (10:19 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 2 Aug 2013 10:22:54 +0000 (11:22 +0100)
commit4a678f037475edd362a18fc3c4616d6222be3042
treee47b9bbe8f3ddffd1099b93f35be8d6ff80a8399
parentdff91d0b721bf8f036c1071a8f16a7effaa87514
regulators: max8660: use i2c_id->driver_data rather than ->name

Introduce an enum and denote the device type via struct i2c_id's
driver_data field rather than comparing strings.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8660.c