mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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: lijian <lijian@yulong.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
584b2373ee
commit
40d62da2a1
@ -18,7 +18,7 @@
|
||||
#include <linux/slab.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;
|
||||
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,
|
||||
const struct v4l2_event_subscription *sub, unsigned elems,
|
||||
const struct v4l2_event_subscription *sub, unsigned int elems,
|
||||
const struct v4l2_subscribed_event_ops *ops)
|
||||
{
|
||||
struct v4l2_subscribed_event *sev, *found_ev;
|
||||
unsigned long flags;
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
int ret = 0;
|
||||
|
||||
if (sub->type == V4L2_EVENT_ALL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user