From: Colin Cross Date: Fri, 27 May 2011 19:25:27 +0000 (-0700) Subject: regulator: twl-regulator: fix n_voltages for twl6030 variable LDOs X-Git-Tag: v3.1-rc1~89^2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7736f11dbadce33d3f12bf0e8114d0f1da5e8622;p=pandora-kernel.git regulator: twl-regulator: fix n_voltages for twl6030 variable LDOs The n_voltages initializer for the TWL6030_ADJUSTABLE_LDO macro is off by one, causing the the highest supported voltage to be unreachable. Setting the machine constraints to only allow the highest voltage causes errors: machine_constraints_voltage: VAUX3_6030: unsupportable voltage constraints twl_reg twl_reg.39: can't register VAUX3_6030, -22 twl_reg: probe of twl_reg.39 failed with error -22 This patch fixes the off by one error. Tested by setting VAUX3_6030 to 3.3V. Signed-off-by: Colin Cross Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed