From: Bryan Freed Date: Fri, 24 Jun 2011 20:40:47 +0000 (-0700) Subject: iio: light sensor: Add SMBUS support to the tsl2563 driver. X-Git-Tag: v3.1-rc1~232^2~431 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9b42c01ae8d17fdf8d910a4255d18ed2ac22f90;p=pandora-kernel.git iio: light sensor: Add SMBUS support to the tsl2563 driver. This is so we can support it on x86 SMBUS adapters. Since i2c adapters which do not provide an smbus_xfer interface fall back to using their I2C master_xfer interface, all the i2c_master_send() calls in this driver are changed to i2c_smbus_*() calls. This will fail on an i2c adapter that implements a proper subset of (SMBUS_BYTE | SMBUS_BYTE_DATA | SMBUS_WORD_DATA), but I do not see that in any of our adapters today. This results in a few wrapper functions that provide little additional functionality, so remove them and call the smbus functions directly from the general driver code. Signed-off-by: Bryan Freed Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed