Commit 40d62da2 authored by lijian's avatar lijian Committed by Mauro Carvalho Chehab
Browse files

media: v4l2-event: Modified variable type 'unsigned' to 'unsigned int'



Prefer 'unsigned int' to bare use of 'unsigned'.
So modified variable type 'unsigned' to 'unsigned int' in v4l2-event.c.

Signed-off-by: default avatarlijian <lijian@yulong.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 584b2373
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/export.h>


static unsigned sev_pos(const struct v4l2_subscribed_event *sev, unsigned idx)
static unsigned int sev_pos(const struct v4l2_subscribed_event *sev, unsigned int idx)
{
{
	idx += sev->first;
	idx += sev->first;
	return idx >= sev->elems ? idx - sev->elems : idx;
	return idx >= sev->elems ? idx - sev->elems : idx;
@@ -221,12 +221,12 @@ static void __v4l2_event_unsubscribe(struct v4l2_subscribed_event *sev)
}
}


int v4l2_event_subscribe(struct v4l2_fh *fh,
int v4l2_event_subscribe(struct v4l2_fh *fh,
			 const struct v4l2_event_subscription *sub, unsigned elems,
			 const struct v4l2_event_subscription *sub, unsigned int elems,
			 const struct v4l2_subscribed_event_ops *ops)
			 const struct v4l2_subscribed_event_ops *ops)
{
{
	struct v4l2_subscribed_event *sev, *found_ev;
	struct v4l2_subscribed_event *sev, *found_ev;
	unsigned long flags;
	unsigned long flags;
	unsigned i;
	unsigned int i;
	int ret = 0;
	int ret = 0;


	if (sub->type == V4L2_EVENT_ALL)
	if (sub->type == V4L2_EVENT_ALL)