From: Axel Lin Date: Tue, 24 Jul 2012 10:35:16 +0000 (+0800) Subject: gpio: msic: Fix calculating register address in msic_gpio_to_oreg() X-Git-Tag: v3.6-rc2~17^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7da0bdbf585c0404fc89901ee4bdb806e70530f;p=pandora-kernel.git gpio: msic: Fix calculating register address in msic_gpio_to_oreg() In the case offset is 20 ... 23, the equation to get the register should be: INTEL_MSIC_GPIO1HV0CTLO - offset + 20 With above equation, we can get below mapping between offset and the register: offset is 20: INTEL_MSIC_GPIO1HV0CTLO offset is 21: INTEL_MSIC_GPIO1HV1CTLO offset is 22: INTEL_MSIC_GPIO1HV2CTLO offset is 23: INTEL_MSIC_GPIO1HV3CTLO Signed-off-by: Axel Lin Acked-by: Mathias Nyman Signed-off-by: Linus Walleij --- Reading git-diff-tree failed