summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-07-24 12:13:59 (GMT)
committerJean Delvare <khali@endymion.delvare>2012-07-24 12:13:59 (GMT)
commit72fc2c7f78b0c365454e60ad33b0e74aea43e3ab (patch)
treeb4416754f881f49b0e4cdb3585ed1f598c5a6c56 /drivers/macintosh
parentd47726c52122d64253ae56e0fafdb7d0b954e97c (diff)
downloadlinux-fsl-qoriq-72fc2c7f78b0c365454e60ad33b0e74aea43e3ab.tar.xz
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>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions