From 0b665062a1dde470d69ff3bd435b090a119991ab Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 9 Apr 2013 20:17:15 +0800 Subject: [PATCH] regulator: ab8500: Don't update lp_mode_req flag in set_mode() error paths Currently, set invalid mode setting for shared mode regulators may change sm->lp_mode_req flag. This patch ensures we don't set lp_mode_req flag to wrong status if set_mode() fails. This patch includes some clean up, and these changes makes this patch looks like code refactor. The clean up is mainly to avoid adding ugly code to handle failure paths. Signed-off-by: Axel Lin Acked-by: Bengt Jonsson Signed-off-by: Mark Brown --- Reading git-format-patch failed