linux/drivers/media/usb/em28xx
Frank Schaefer 4d58443696 [media] em28xx: simplify ID-reading from Micron sensors
Use i2c_smbus_read_word_data() instead of i2c_master_send() and
i2c_master_recv() for reading the ID of Micorn sensors.

i2c_smbus_read_word_data() assumes that byes are in little-endian,
so, it uses:
	data->word = msgbuf1[0] | (msgbuf1[1] << 8);

However, Micron datasheet describes the ID as if they were read
in big-endian. So, we need to change the byte order in order to
match the ID number as described on their datasheets.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-17 17:29:51 -03:00
..
em28xx-audio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
em28xx-camera.c [media] em28xx: simplify ID-reading from Micron sensors 2017-04-17 17:29:51 -03:00
em28xx-cards.c [media] em28xx: Add new USB ID eb1a:5051 2017-04-17 13:13:01 -03:00
em28xx-core.c [media] em28xx: don't store usb_device at struct em28xx 2016-12-12 07:30:44 -02:00
em28xx-dvb.c [media] em28xx: support for Hauppauge WinTV-dualHD 01595 ATSC/QAM 2017-02-03 13:46:42 -02:00
em28xx-i2c.c [media] em28xx: use usb_interface for dev_foo() calls 2016-12-12 07:29:08 -02:00
em28xx-input.c [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
em28xx-reg.h [media] em28xx: add support for Hauppauge WinTV-dualHD DVB tuner 2016-05-09 14:25:39 -03:00
em28xx-v4l.h [media] em28xx: checkpatch cleanup: whitespaces/new lines cleanups 2014-12-04 14:13:14 -02:00
em28xx-vbi.c [media] em28xx: use usb_interface for dev_foo() calls 2016-12-12 07:29:08 -02:00
em28xx-video.c [media] em28xx: don't store usb_device at struct em28xx 2016-12-12 07:30:44 -02:00
em28xx.h [media] em28xx: support for Hauppauge WinTV-dualHD 01595 ATSC/QAM 2017-02-03 13:46:42 -02:00
Kconfig [media] em28xx: only use mt9v011 if camera support is enabled 2016-11-23 13:17:25 -02:00
Makefile [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00