iio: chemical: vz89x: rework i2c transfer reading
authorMatt Ranostay <mranostay@gmail.com>
Wed, 2 Dec 2015 05:47:20 +0000 (21:47 -0800)
committerJonathan Cameron <jic23@kernel.org>
Thu, 3 Dec 2015 18:31:12 +0000 (18:31 +0000)
commit93e87d73cc46685902bffb0928c2514eaf209b44
tree42e53f8a2825efcc963df9098943415319f52c0d
parent4c3e2a4036054deca4819758f59ff65f27938388
iio: chemical: vz89x: rework i2c transfer reading

Add an optimized i2c transfer reading function, and fallback
to racey smbus transfers if client->adapter doesn't support this.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/chemical/vz89x.c