From: Axel Lin Date: Wed, 18 May 2011 12:56:45 +0000 (+0800) Subject: regulator: Fix off-by-one value range checking for mc13xxx_regulator_get_voltage X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285f4fcb059b68a1683474ff33a367e374c46e6e;p=pandora-kernel.git regulator: Fix off-by-one value range checking for mc13xxx_regulator_get_voltage We use val as array index, thus the valid value rangae for val should be 0 .. n_voltages-1. Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed