Skip to content

Commit 9dabe66

Browse files
anholtgregkh
authored andcommitted
staging: bcm2835: Fix mmal_port_parameter_get() signed/unsigned warnings.
The arg is a u32 *, so switch over to that in our declarations. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent aa4f227 commit 9dabe66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
492492
{
493493
struct bm2835_mmal_dev *dev = vb2_get_drv_priv(vq);
494494
int ret;
495-
int parameter_size;
495+
u32 parameter_size;
496496

497497
v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p\n",
498498
__func__, dev);
@@ -1489,7 +1489,7 @@ static int get_num_cameras(struct vchiq_mmal_instance *instance,
14891489
int ret;
14901490
struct vchiq_mmal_component *cam_info_component;
14911491
struct mmal_parameter_camera_info_t cam_info = {0};
1492-
int param_size = sizeof(cam_info);
1492+
u32 param_size = sizeof(cam_info);
14931493
int i;
14941494

14951495
/* create a camera_info component */
@@ -1553,7 +1553,7 @@ static int __init mmal_init(struct bm2835_mmal_dev *dev)
15531553
int ret;
15541554
struct mmal_es_format_local *format;
15551555
u32 supported_encodings[MAX_SUPPORTED_ENCODINGS];
1556-
int param_size;
1556+
u32 param_size;
15571557
struct vchiq_mmal_component *camera;
15581558

15591559
ret = vchiq_mmal_init(&dev->instance);

0 commit comments

Comments
 (0)