]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5900): usbvision: fix bugs [sg]_register functions
authorTrent Piepho <xyzzy@speakeasy.org>
Mon, 23 Jul 2007 09:58:31 +0000 (06:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 30 Jul 2007 19:26:31 +0000 (16:26 -0300)
commit7517fd3234ce2b489089e7b619031b929fabf84a
tree33d48c996e453d36f58f9572b44508423fb487cb
parentf3ca5a7a0126e8f9b1deae2cac074299863073ad
V4L/DVB (5900): usbvision: fix bugs [sg]_register functions

s_register was assigning the return code to (unsigned)reg->val, rather than
errCode, which it what it would return.  Except reg->val can't be < 0, so it
would never actually return an error.

g_register never actually put the value it read into reg->val.

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