i2c: apply address offset for slaves, too
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 18 May 2015 19:09:12 +0000 (21:09 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 24 Aug 2015 12:05:11 +0000 (14:05 +0200)
commitda899f55b359225f85e154765baaddb13ec436ca
tree00d1db2a93b72e740a30d4127c6170ce6d1e829f
parentc5ebb387f4e6b2dd7c74d71caf7b696834d0c887
i2c: apply address offset for slaves, too

We want a separate address range for being an I2C slave. Add an offset
of 0x1000, so it can be combined with ten bit addresses as well. Add a
separate function to create the address value, we will need it later in
other places.

Tested-by: Andrey Danin <danindrey@mail.ru>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c