linux/drivers/i2c
Yegor Yefremov 6abb930af0 i2c-pca: Fix waitforcompletion() return value
ret is still -1, if during the polling read_byte() returns at once
with I2C_PCA_CON_SI set. So ret > 0 would lead *_waitforcompletion()
to return 0, in spite of the proper behavior.

The routine was rewritten, so that ret has always a proper value,
before returning.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: stable@kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2010-09-30 14:14:22 +02:00
..
algos i2c-algo-pca: Fix coding style issues 2010-05-21 18:41:00 +02:00
busses i2c-pca: Fix waitforcompletion() return value 2010-09-30 14:14:22 +02:00
muxes i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
i2c-boardinfo.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
i2c-core.c i2c: Fix for suspend/resume issue 2010-09-30 14:14:22 +02:00
i2c-core.h i2c: Use rwsem instead of mutex for board info 2009-06-19 16:58:20 +02:00
i2c-dev.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-mux.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-smbus.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
Kconfig i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
Makefile i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00