From: Axel Lin Date: Sun, 15 Jul 2012 08:57:12 +0000 (+0800) Subject: regulator: lp872x: Simplify implementation of lp872x_find_regulator_init_data() X-Git-Tag: v3.6-rc1~157^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bae062830b57e75a00f1a643a6e031ad0f15129;p=pandora-kernel.git regulator: lp872x: Simplify implementation of lp872x_find_regulator_init_data() Pass regulator id rahter than the index to lp872x_find_regulator_init_data(), then the code can be simpler. We can also get max_regulators by lp->num_regulators. Signed-off-by: Axel Lin Acked-by: Milo(Woogyom) Kim Tested-by: Milo(Woogyom) Kim Signed-off-by: Mark Brown --- Reading git-diff-tree failed