From: Jean Delvare Date: Sun, 6 Dec 2009 16:06:17 +0000 (+0100) Subject: i2c-powermac: Reject unsupported I2C transactions X-Git-Tag: v2.6.33-rc1~385^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f7e549f873e9ff10a4a27241db568bf7988ee0c;p=pandora-kernel.git i2c-powermac: Reject unsupported I2C transactions The i2c-powermac driver doesn't support arbitrary multi-message I2C transactions, only SMBus ones. Make it clear by returning an error if a multi-message I2C transaction is attempted. This is better than only processing the first message, because most callers won't recover from the short transaction. Anyone wishing to issue multi-message transactions should use the SMBus API instead of the raw I2C API. Signed-off-by: Jean Delvare Tested-by: Michel Daenzer Acked-by: Benjamin Herrenschmidt Cc: Paul Mackerras --- Reading git-diff-tree failed