Laurent Pinchart 72fc2c7f78 i2c: Fall back to emulated SMBus if the operation isn't supported natively
Adapter drivers might support only a subset of the SMBus operations
natively. Those drivers currently have to manually emulate unsupported
operations using I2C.

Make the i2c_smbus_xfer() function fall back to
i2c_smbus_xfer_emulated() when the adapter's .smbus_xfer() operation
returns -EOPNOTSUPP, like it already does when the .smbus_xfer()
operation isn't available at all.

[JD: Minor optimization.]

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2012-07-24 14:13:59 +02:00
..
2012-07-19 00:03:35 +02:00
2012-06-20 14:39:36 -07:00
2012-05-24 16:22:53 -04:00
2012-07-22 13:36:52 -07:00
2012-07-23 16:31:31 -07:00
2012-07-23 16:31:31 -07:00
2012-07-19 00:03:17 +02:00
2012-07-23 17:51:03 -07:00
2012-05-23 14:07:06 -07:00
2012-07-23 17:36:02 -07:00
2012-07-16 09:20:33 -07:00
2012-05-22 16:02:13 -07:00
2012-07-23 17:51:03 -07:00
2012-07-04 15:55:19 +08:00
2012-07-23 17:36:02 -07:00
2012-07-15 21:49:21 +01:00
2012-07-23 17:51:03 -07:00
2012-05-22 16:02:13 -07:00
2012-07-23 17:36:53 -07:00
2012-07-22 13:36:52 -07:00
2012-07-23 17:51:03 -07:00
2012-07-24 14:13:59 +02:00
2012-07-23 17:36:02 -07:00
2012-06-21 21:40:40 -06:00
2012-06-15 17:17:15 -07:00
2012-05-22 16:34:21 -07:00
2012-05-26 12:22:27 -07:00