]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
CRIS v10: Fix bugs in i2c_init and i2c_readreg
authorJesper Nilsson <jesper.nilsson@axis.com>
Thu, 17 Jan 2008 13:50:47 +0000 (14:50 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:29 +0000 (11:06 +0100)
commite5d5cf2442038b8ad3e0f90b00e5acdd18d5fa98
tree5f1307e1a0a2081c22d941264828559a6c3a2e2c
parent3d6c03fc223e6ed3b7cb4cf850a7da4a376d02d3
CRIS v10: Fix bugs in i2c_init and i2c_readreg

- Set the variable first to zero after first setup, so we can
  stop multiple calls to i2c_init from trying to setup i2c.

- The last byte read by the master in an i2c transfer needs to
  be NACKed, not ACKed.

- Also, remove useless CVS log and CVS id tags.
arch/cris/arch-v10/drivers/i2c.c