]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: merge all i2c_reg_read() and i2c_reg_write() into inline functions
authorTimur Tabi <timur@freescale.com>
Wed, 3 Dec 2008 17:28:30 +0000 (11:28 -0600)
committerWolfgang Denk <wd@denx.de>
Mon, 15 Dec 2008 22:46:21 +0000 (23:46 +0100)
commitecf5f077c8e77454f532eaac3e3afb7cfc48c62d
tree31ff670aa674bc9e44c6dd4baeea0ad5a4855fe5
parente39cd81c44740d7355d277ed3d38536cbe1e003d
i2c: merge all i2c_reg_read() and i2c_reg_write() into inline functions

All implementations of the functions i2c_reg_read() and
i2c_reg_write() are identical. We can save space and simplify the
code by converting these functions into inlines and putting them in
i2c.h.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-By: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
14 files changed:
cpu/arm920t/at91rm9200/i2c.c
cpu/arm926ejs/davinci/i2c.c
cpu/blackfin/i2c.c
cpu/mpc512x/i2c.c
cpu/mpc5xxx/i2c.c
cpu/mpc8220/i2c.c
cpu/mpc824x/drivers/i2c/i2c.c
cpu/mpc8260/i2c.c
cpu/mpc8xx/i2c.c
cpu/ppc4xx/i2c.c
cpu/pxa/i2c.c
drivers/i2c/fsl_i2c.c
drivers/i2c/soft_i2c.c
include/i2c.h