From: Krzysztof Kozlowski Date: Mon, 27 Oct 2014 12:11:48 +0000 (+0100) Subject: regulator: max77686: Store opmode non-shifted X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~23^2~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c5d1868bfed0643eb4d2c608cead41f6bf4132;p=pandora-kernel.git regulator: max77686: Store opmode non-shifted Introduce simple helper for calculating the shift for OPMODE field in registers. This allows storing the current value of opmode in non-shifted form and simplifies a little set_suspend_disable and enable functions. Additionally this will allow adding support LDOs to the existing set_suspend_disable function. Signed-off-by: Krzysztof Kozlowski Suggested-by: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas Signed-off-by: Mark Brown --- Reading git-diff-tree failed