Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199957
b: refs/heads/master
c: 3805f20
h: refs/heads/master
i:
  199955: 9968d17
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 7fac548 commit a756e4a
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf69b808caf8e729949cf20446bec0b9ace033b7
refs/heads/master: 3805f201934e5384f6e941222dc1968cb638a88c
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/ak881x.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int ak881x_s_mbus_fmt(struct v4l2_subdev *sd,
return ak881x_try_g_mbus_fmt(sd, mf);
}

static int ak881x_enum_mbus_fmt(struct v4l2_subdev *sd, int index,
static int ak881x_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if (index)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mt9m001.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,13 @@ static struct v4l2_subdev_core_ops mt9m001_subdev_core_ops = {
#endif
};

static int mt9m001_enum_fmt(struct v4l2_subdev *sd, int index,
static int mt9m001_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
struct i2c_client *client = sd->priv;
struct mt9m001 *mt9m001 = to_mt9m001(client);

if ((unsigned int)index >= mt9m001->num_fmts)
if (index >= mt9m001->num_fmts)
return -EINVAL;

*code = mt9m001->fmts[index].code;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mt9m111.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,10 @@ static struct v4l2_subdev_core_ops mt9m111_subdev_core_ops = {
#endif
};

static int mt9m111_enum_fmt(struct v4l2_subdev *sd, int index,
static int mt9m111_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if ((unsigned int)index >= ARRAY_SIZE(mt9m111_colour_fmts))
if (index >= ARRAY_SIZE(mt9m111_colour_fmts))
return -EINVAL;

*code = mt9m111_colour_fmts[index].code;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/mt9t031.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ static struct v4l2_subdev_core_ops mt9t031_subdev_core_ops = {
#endif
};

static int mt9t031_enum_fmt(struct v4l2_subdev *sd, int index,
static int mt9t031_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if (index)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mt9t112.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,10 @@ static int mt9t112_try_fmt(struct v4l2_subdev *sd,
return 0;
}

static int mt9t112_enum_fmt(struct v4l2_subdev *sd, int index,
static int mt9t112_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if ((unsigned int)index >= ARRAY_SIZE(mt9t112_cfmts))
if (index >= ARRAY_SIZE(mt9t112_cfmts))
return -EINVAL;

*code = mt9t112_cfmts[index].code;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mt9v022.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,13 +838,13 @@ static struct v4l2_subdev_core_ops mt9v022_subdev_core_ops = {
#endif
};

static int mt9v022_enum_fmt(struct v4l2_subdev *sd, int index,
static int mt9v022_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
struct i2c_client *client = sd->priv;
struct mt9v022 *mt9v022 = to_mt9v022(client);

if ((unsigned int)index >= mt9v022->num_fmts)
if (index >= mt9v022->num_fmts)
return -EINVAL;

*code = mt9v022->fmts[index].code;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mx3_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static bool mx3_camera_packing_supported(const struct soc_mbus_pixelfmt *fmt)
fmt->packing == SOC_MBUS_PACKING_EXTEND16);
}

static int mx3_camera_get_formats(struct soc_camera_device *icd, int idx,
static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int idx,
struct soc_camera_format_xlate *xlate)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
Expand All @@ -689,7 +689,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, int idx,
fmt = soc_mbus_get_fmtdesc(code);
if (!fmt) {
dev_err(icd->dev.parent,
"Invalid format code #%d: %d\n", idx, code);
"Invalid format code #%u: %d\n", idx, code);
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/ov772x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,10 +1092,10 @@ static struct v4l2_subdev_core_ops ov772x_subdev_core_ops = {
#endif
};

static int ov772x_enum_fmt(struct v4l2_subdev *sd, int index,
static int ov772x_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if ((unsigned int)index >= ARRAY_SIZE(ov772x_cfmts))
if (index >= ARRAY_SIZE(ov772x_cfmts))
return -EINVAL;

*code = ov772x_cfmts[index].code;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/ov9640.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,10 @@ static int ov9640_try_fmt(struct v4l2_subdev *sd,
return 0;
}

static int ov9640_enum_fmt(struct v4l2_subdev *sd, int index,
static int ov9640_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if ((unsigned int)index >= ARRAY_SIZE(ov9640_codes))
if (index >= ARRAY_SIZE(ov9640_codes))
return -EINVAL;

*code = ov9640_codes[index];
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ static bool pxa_camera_packing_supported(const struct soc_mbus_pixelfmt *fmt)
fmt->packing == SOC_MBUS_PACKING_EXTEND16);
}

static int pxa_camera_get_formats(struct soc_camera_device *icd, int idx,
static int pxa_camera_get_formats(struct soc_camera_device *icd, unsigned int idx,
struct soc_camera_format_xlate *xlate)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
Expand All @@ -1264,7 +1264,7 @@ static int pxa_camera_get_formats(struct soc_camera_device *icd, int idx,

fmt = soc_mbus_get_fmtdesc(code);
if (!fmt) {
dev_err(dev, "Invalid format code #%d: %d\n", idx, code);
dev_err(dev, "Invalid format code #%u: %d\n", idx, code);
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/rj54n1cb0c.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ static int reg_write_multiple(struct i2c_client *client,
return 0;
}

static int rj54n1_enum_fmt(struct v4l2_subdev *sd, int index,
static int rj54n1_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if ((unsigned int)index >= ARRAY_SIZE(rj54n1_colour_fmts))
if (index >= ARRAY_SIZE(rj54n1_colour_fmts))
return -EINVAL;

*code = rj54n1_colour_fmts[index].code;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ static bool sh_mobile_ceu_packing_supported(const struct soc_mbus_pixelfmt *fmt)

static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect);

static int sh_mobile_ceu_get_formats(struct soc_camera_device *icd, int idx,
static int sh_mobile_ceu_get_formats(struct soc_camera_device *icd, unsigned int idx,
struct soc_camera_format_xlate *xlate)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
Expand All @@ -897,7 +897,7 @@ static int sh_mobile_ceu_get_formats(struct soc_camera_device *icd, int idx,
fmt = soc_mbus_get_fmtdesc(code);
if (!fmt) {
dev_err(icd->dev.parent,
"Invalid format code #%d: %d\n", idx, code);
"Invalid format code #%u: %d\n", idx, code);
return -EINVAL;
}

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ static int soc_camera_init_user_formats(struct soc_camera_device *icd)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
int i, fmts = 0, raw_fmts = 0, ret;
unsigned int i, fmts = 0, raw_fmts = 0;
int ret;
enum v4l2_mbus_pixelcode code;

while (!v4l2_subdev_call(sd, video, enum_mbus_fmt, raw_fmts, &code))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/soc_camera_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int soc_camera_platform_try_fmt(struct v4l2_subdev *sd,

static struct v4l2_subdev_core_ops platform_subdev_core_ops;

static int soc_camera_platform_enum_fmt(struct v4l2_subdev *sd, int index,
static int soc_camera_platform_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
struct soc_camera_platform_info *p = v4l2_get_subdevdata(sd);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/tw9910.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ static struct v4l2_subdev_core_ops tw9910_subdev_core_ops = {
#endif
};

static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index,
static int tw9910_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code)
{
if (index)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/media/soc_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct soc_camera_host_ops {
* .get_formats() fail, .put_formats() will not be called at all, the
* failing .get_formats() must then clean up internally.
*/
int (*get_formats)(struct soc_camera_device *, int,
int (*get_formats)(struct soc_camera_device *, unsigned int,
struct soc_camera_format_xlate *);
void (*put_formats)(struct soc_camera_device *);
int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/media/v4l2-subdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct v4l2_subdev_video_ops {
struct v4l2_dv_timings *timings);
int (*g_dv_timings)(struct v4l2_subdev *sd,
struct v4l2_dv_timings *timings);
int (*enum_mbus_fmt)(struct v4l2_subdev *sd, int index,
int (*enum_mbus_fmt)(struct v4l2_subdev *sd, unsigned int index,
enum v4l2_mbus_pixelcode *code);
int (*g_mbus_fmt)(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *fmt);
Expand Down

0 comments on commit a756e4a

Please sign in to comment.