Dear Troy Kisky,
[...]
> >> @@ -364,7 +340,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar
> >> *buf, int len) temp |= I2CR_RSTA;
> >>
> >>writeb(temp, &i2c_regs->i2cr);
> >>
> >> - ret = i2c_imx_set_chip_addr(chip, 1);
> >> + ret = tx_byte(i2c_regs, (chip << 1) | 1);
> >
> > Is
On 6/22/2012 9:58 AM, Marek Vasut wrote:
Dear Troy Kisky,
Use tx_byte function instead of having 3 copies
of the code.
Signed-off-by: Troy Kisky
---
drivers/i2c/mxc_i2c.c | 72
+++-- 1 file changed, 21
insertions(+), 51 deletions(-)
diff --git a
Dear Troy Kisky,
> Use tx_byte function instead of having 3 copies
> of the code.
>
> Signed-off-by: Troy Kisky
> ---
> drivers/i2c/mxc_i2c.c | 72
> +++-- 1 file changed, 21
> insertions(+), 51 deletions(-)
>
> diff --git a/drivers/i2c/mxc_i2c.c b/
Use tx_byte function instead of having 3 copies
of the code.
Signed-off-by: Troy Kisky
---
drivers/i2c/mxc_i2c.c | 72 +++--
1 file changed, 21 insertions(+), 51 deletions(-)
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 0b46c9c..
4 matches
Mail list logo