From: Axel Lin Date: Wed, 6 Jun 2012 12:01:38 +0000 (+0800) Subject: regulator: palmas: Slightly code change for better readability X-Git-Tag: v3.6-rc1~157^2^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fedd89b1aafd6b2bf7c0b4009fd616a02484ae80;p=pandora-kernel.git regulator: palmas: Slightly code change for better readability It's a little bit hard to read that the "else" case means id == PALMAS_REG_SMPS10. if (id != PALMAS_REG_SMPS10){ do something for the cases id != PALMAS_REG_SMPS10; } else { do something for the case id == PALMAS_REG_SMPS10; } This patch changes above syntax to switch statement. Signed-off-by: Axel Lin Acked-by: Graeme Gregory Signed-off-by: Mark Brown --- Reading git-diff-tree failed