regulator: ab3100: refactor probe to use IDs
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Apr 2013 09:57:14 +0000 (11:57 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 24 Apr 2013 09:53:59 +0000 (10:53 +0100)
commit9b31835341004022ea2862116de05fea50b8d1e4
tree24ea17657cbd6aca0077653eeb5834eab203128d
parent60d509fa6a9c4653a86ad830e4c4b30360b23f0e
regulator: ab3100: refactor probe to use IDs

This refactors the AB3100 regulator probe to use regulator IDs
and pass this to a separate registration function. This works
much smoother when migrating to device tree, as we can use a
match table with this regulator ID encoded in the .driver_data.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab3100.c