From: Axel Lin Date: Thu, 15 Mar 2012 00:47:48 +0000 (+0800) Subject: regulator: max8952: Simplify the logic to get vid[0|1] status X-Git-Tag: v3.5-rc1~177^2~58^3~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8237f01db63b458c34222d07f66c5417cfd866b;p=pandora-kernel.git regulator: max8952: Simplify the logic to get vid[0|1] status The syntax "(((vid >> 1) % 2) == 1)" is inefficient and also hard to read. Use bitwidse AND operator instead. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed