From: Sonic Zhang Date: Mon, 1 Jul 2013 03:24:46 +0000 (+0800) Subject: Blackfin: bfin_gpio: Use proper mask for comparing pfunc X-Git-Tag: v3.13-rc1~70^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f70de486b2dd21b60705e57afecdc5f6a79be4e7;p=pandora-kernel.git Blackfin: bfin_gpio: Use proper mask for comparing pfunc For BF537_FAMILY, when offset != 1, the mask is 1. Thus add proper mask for comparing pfunc with function. Also has small refactor for better readability. In portmux_setup(), it looks odd having "pmux &= ~(3 << 1);" while in current code we do pmux |= (function << offset);. Signed-off-by: Axel Lin Signed-off-by: Sonic Zhang --- Reading git-diff-tree failed