]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (5428): M920x: Detect zero-length I2C messages and fix a typo
authorTrent Piepho <xyzzy@speakeasy.org>
Mon, 12 Mar 2007 15:13:12 +0000 (12:13 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:43 +0000 (15:44 -0300)
commit57f8dcf90bdf4c6b23ea2af3d307d1d137b696b9
tree75ca4bd18c877bdf08164d806c9f235eee64f2ef
parentd40860f8e2edb31196f4233d3691704d313dbdd6
V4L/DVB (5428): M920x: Detect zero-length I2C messages and fix a typo

Change a 00 to just 0
Detect zero-length I2C messages and return not supported.  I think I know
how to send one, but the problem is getting the slave's ack.  The only
point of a zero-length message is for probing; too see if the slave will
ack its address.  Since we don't know how to get the ack, we can't
support zero-length messages in a useful way, so it's probably best to
just return not supported for them.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/m920x.c