]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] v4l: mt9p031/mt9t001: Use i2c_smbus_{read|write}_word_swapped()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 22 Oct 2011 07:57:54 +0000 (04:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 13:27:29 +0000 (11:27 -0200)
commitc27e3050378ec0d96d964cbf18746a30ad00ab9f
tree9521555d4d322e88ecd6767b0a1913fa11309579
parentcfb128ed0768320c2d0e43cf781c8eaa622876b6
[media] v4l: mt9p031/mt9t001: Use i2c_smbus_{read|write}_word_swapped()

The MT9P031 and MT9T001 sensors transfer 16-bit data on the I2C bus in
swapped order. Let the I2C core handle byte order by using the
i2c_smbus_{read|write}_word_swapped() functions.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9p031.c
drivers/media/video/mt9t001.c