i2c: octeon,thunderx: Move register offsets to struct
authorJan Glauber <jglauber@cavium.com>
Wed, 24 Aug 2016 21:25:46 +0000 (23:25 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:41:57 +0000 (00:41 +0200)
commit97d970046a15bf5baac849dbeac56310c8ee3966
tree0a61089daf63501a2db807f70ad6f579fd8fd397
parent1e5866711accf16e931c4f8174cf898b554e9f4a
i2c: octeon,thunderx: Move register offsets to struct

The register offsets are different between Octeon and ThunderX so move
them into the algorithm struct and get rid of the define.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon-core.c
drivers/i2c/busses/i2c-octeon-core.h
drivers/i2c/busses/i2c-octeon-platdrv.c
drivers/i2c/busses/i2c-thunderx-pcidrv.c