On Fri, 30 Nov 2007 15:54:01 +0100 Jesper Nilsson <[EMAIL PROTECTED]> wrote:
> +int
> +i2c_write(unsigned char theSlave, void *data, size_t nbytes)
> +{
> + int error, cntr = 3;
> + unsigned char bytes_wrote = 0;
> + unsigned char value;
> + unsigned long flags;
> +
> +
On Fri, 30 Nov 2007 15:54:01 +0100 Jesper Nilsson [EMAIL PROTECTED] wrote:
+int
+i2c_write(unsigned char theSlave, void *data, size_t nbytes)
+{
+ int error, cntr = 3;
+ unsigned char bytes_wrote = 0;
+ unsigned char value;
+ unsigned long flags;
+
+
- Add i2c_write and i2c_read as functions.
- Use spinlocks for critical regions.
- Add config item to set I2C data and clock port.
- Put unneeded testcode inside #if 0.
- Remove CVS id tag.
Signed-off-by: Jesper Nilsson <[EMAIL PROTECTED]>
---
arch/cris/arch-v32/drivers/i2c.c | 199
- Add i2c_write and i2c_read as functions.
- Use spinlocks for critical regions.
- Add config item to set I2C data and clock port.
- Put unneeded testcode inside #if 0.
- Remove CVS id tag.
Signed-off-by: Jesper Nilsson [EMAIL PROTECTED]
---
arch/cris/arch-v32/drivers/i2c.c | 199
4 matches
Mail list logo