[media] go7007: fix i2c_xfer return codes
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Mar 2013 09:18:03 +0000 (06:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 15:10:36 +0000 (12:10 -0300)
commitffb9749346b4e3bb567d0d5daa88edae9f8ec8ae
tree7d8fa0d99143c9dbac2b054b029fce65a6809183
parent1589037f8716a605a36ee6dda6f7cdd4d043522b
[media] go7007: fix i2c_xfer return codes

The i2c_xfer functions didn't return the proper error codes and (especially
important) on success they returned 0 instead of the number of transferred
messages.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/go7007/go7007-i2c.c
drivers/staging/media/go7007/go7007-usb.c