From: Mark Brown Date: Thu, 16 Dec 2010 13:59:10 +0000 (+0000) Subject: regulator: Only notify voltage changes when they succeed X-Git-Tag: v2.6.38-rc1~242^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded06a5270ddd6c3c3e25d9ddcaaaa4cb8385c2f;p=pandora-kernel.git regulator: Only notify voltage changes when they succeed Currently we notify a voltage change whenever we exit set_voltage(), even if the change failed for some reason (eg, a constraints issue). This shouldn't cause any substantial ill effects but is wasteful as listeners get notified on noops. Fix this by moving the notification into _do_set_voltage() and only notifying if we don't return an error. Reported-by: Saravana Kannan Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed