diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-11-16 14:11:54 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-22 21:29:01 +0300 |
commit | d08876f524a605d64c7ca32cb8e9f5be3839e82e (patch) | |
tree | c1891a896ec6b28dd302ba9653385efa644f3fe6 /drivers/media/usb/stkwebcam/stk-webcam.h | |
parent | 414e72c729534a89017bc19415edc4957ebcc6fa (diff) | |
download | linux-d08876f524a605d64c7ca32cb8e9f5be3839e82e.tar.xz |
[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>
Diffstat (limited to 'drivers/media/usb/stkwebcam/stk-webcam.h')
-rw-r--r-- | drivers/media/usb/stkwebcam/stk-webcam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.h b/drivers/media/usb/stkwebcam/stk-webcam.h index 9bbfa3d9bfdd..92bb48e3c74e 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.h +++ b/drivers/media/usb/stkwebcam/stk-webcam.h @@ -129,7 +129,7 @@ struct stk_camera { #define vdev_to_camera(d) container_of(d, struct stk_camera, vdev) int stk_camera_write_reg(struct stk_camera *, u16, u8); -int stk_camera_read_reg(struct stk_camera *, u16, int *); +int stk_camera_read_reg(struct stk_camera *, u16, u8 *); int stk_sensor_init(struct stk_camera *); int stk_sensor_configure(struct stk_camera *); |