[media] stk-webcam: fix an endian bug in stk_camera_read_reg()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Nov 2016 11:11:54 +0000 (09:11 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 18:29:01 +0000 (16:29 -0200)
commitd08876f524a605d64c7ca32cb8e9f5be3839e82e
treec1891a896ec6b28dd302ba9653385efa644f3fe6
parent414e72c729534a89017bc19415edc4957ebcc6fa
[media] stk-webcam: fix an endian bug in stk_camera_read_reg()

We pass an int pointer to stk_camera_read_reg() but only write to the
highest byte.  It's a bug on big endian systems and generally a nasty
thing to do and doesn't match the write function either.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/stkwebcam/stk-sensor.c
drivers/media/usb/stkwebcam/stk-webcam.c
drivers/media/usb/stkwebcam/stk-webcam.h