From: David Brownell Date: Sun, 16 Nov 2008 19:46:56 +0000 (-0800) Subject: regulator: improved mode error checks X-Git-Tag: v2.6.29-rc1~44^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e573520b171095c106ffbbbf4f9cbed6d9bff576;p=pandora-kernel.git regulator: improved mode error checks Minor bugfixes in handling of regulator modes: - have the routine verifying regulator modes check against the set of legal modes (!); - have regulator_set_optimum_mode() verify the return value of regulator_ops.get_optimum_mode(), like drms_uA_update(); - one call to regulator_ops.set_mode() treated zero as a failure code; make this consistent with other callers. Both regulator_set_mode() and regulator_set_optimum_mode() now require valid_ops_mask to include REGULATOR_CHANGE_MODE; that seems like a bugfix too. Signed-off-by: David Brownell Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed