regulator: keep index within bounds in da9034_get_ldo12_voltage()
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 26 Oct 2009 11:37:11 +0000 (12:37 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 17 Dec 2009 10:27:25 +0000 (10:27 +0000)
commit495353a3f7fbb11e5100c9258365ff65a4834b37
tree766596871bc81b4871d169771e1e7f185061667b
parentddec68107ab101d9ff934811d5598f5c613027f2
regulator: keep index within bounds in da9034_get_ldo12_voltage()

If selector equals ARRAY_SIZE(da9034_ldo12_data), that is one too
large already.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/da903x.c