From: Wolfram Sang Date: Fri, 17 Jul 2015 12:48:56 +0000 (+0200) Subject: i2c: take address space into account when checking for used addresses X-Git-Tag: omap-for-v4.3/fixes-rc1~62^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bccc70a127cfe2a13e34d6b6e7300caae113f8f;p=pandora-kernel.git i2c: take address space into account when checking for used addresses It is not enough to compare the plain address value, we also need to check the flags enabling a different address space. E.g. it is valid to have address 0x50 as a 7-bit address and 0x050 as 10-bit address on the same bus. Same for addresses when we are the slave. Tested-by: Andrey Danin Acked-by: Stephen Warren Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed