diff options
author | Jingchang Lu <b35083@freescale.com> | 2013-08-07 05:05:40 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-08-15 10:13:17 -0400 |
commit | 8cc7331ff372b9d03f8b2eb1422052bd99430611 (patch) | |
tree | 66e705a8e5b33abd0d7d1d920a5018a9ecef926e /drivers/i2c/muxes/i2c-mux-pca9541.c | |
parent | 1d5ef2a83e3097408924b5eea8d7750bbde21e45 (diff) |
i2c: imx: change register offset representation
the I2C register offset may different between SoCs,
to provid support for all these chips, split the
register offset into a fixed base address and a
variable shift value, then the full register offset
will be calculated by
reg_off = ( reg_base_addr << reg_shift)
Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/muxes/i2c-mux-pca9541.c')
0 files changed, 0 insertions, 0 deletions