]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a61264b3f02824daf41b59ec34acca5d0b0c390
tree24ea17657cbd6aca0077653eeb5834eab203128d
parent703672083ec5dcd1f437e1daaee90f8eb03563a0
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