aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/vs6624.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/i2c/vs6624.c')
-rw-r--r--drivers/media/i2c/vs6624.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c
index 373f2df52492..00e7f043977e 100644
--- a/drivers/media/i2c/vs6624.c
+++ b/drivers/media/i2c/vs6624.c
@@ -45,19 +45,19 @@ struct vs6624 {
45}; 45};
46 46
47static const struct vs6624_format { 47static const struct vs6624_format {
48 enum v4l2_mbus_pixelcode mbus_code; 48 u32 mbus_code;
49 enum v4l2_colorspace colorspace; 49 enum v4l2_colorspace colorspace;
50} vs6624_formats[] = { 50} vs6624_formats[] = {
51 { 51 {
52 .mbus_code = V4L2_MBUS_FMT_UYVY8_2X8, 52 .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
53 .colorspace = V4L2_COLORSPACE_JPEG, 53 .colorspace = V4L2_COLORSPACE_JPEG,
54 }, 54 },
55 { 55 {
56 .mbus_code = V4L2_MBUS_FMT_YUYV8_2X8, 56 .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
57 .colorspace = V4L2_COLORSPACE_JPEG, 57 .colorspace = V4L2_COLORSPACE_JPEG,
58 }, 58 },
59 { 59 {
60 .mbus_code = V4L2_MBUS_FMT_RGB565_2X8_LE, 60 .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
61 .colorspace = V4L2_COLORSPACE_SRGB, 61 .colorspace = V4L2_COLORSPACE_SRGB,
62 }, 62 },
63}; 63};
@@ -65,7 +65,7 @@ static const struct vs6624_format {
65static struct v4l2_mbus_framefmt vs6624_default_fmt = { 65static struct v4l2_mbus_framefmt vs6624_default_fmt = {
66 .width = VGA_WIDTH, 66 .width = VGA_WIDTH,
67 .height = VGA_HEIGHT, 67 .height = VGA_HEIGHT,
68 .code = V4L2_MBUS_FMT_UYVY8_2X8, 68 .code = MEDIA_BUS_FMT_UYVY8_2X8,
69 .field = V4L2_FIELD_NONE, 69 .field = V4L2_FIELD_NONE,
70 .colorspace = V4L2_COLORSPACE_JPEG, 70 .colorspace = V4L2_COLORSPACE_JPEG,
71}; 71};
@@ -558,7 +558,7 @@ static int vs6624_s_ctrl(struct v4l2_ctrl *ctrl)
558} 558}
559 559
560static int vs6624_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index, 560static int vs6624_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
561 enum v4l2_mbus_pixelcode *code) 561 u32 *code)
562{ 562{
563 if (index >= ARRAY_SIZE(vs6624_formats)) 563 if (index >= ARRAY_SIZE(vs6624_formats))
564 return -EINVAL; 564 return -EINVAL;
@@ -605,15 +605,15 @@ static int vs6624_s_mbus_fmt(struct v4l2_subdev *sd,
605 605
606 /* set image format */ 606 /* set image format */
607 switch (fmt->code) { 607 switch (fmt->code) {
608 case V4L2_MBUS_FMT_UYVY8_2X8: 608 case MEDIA_BUS_FMT_UYVY8_2X8:
609 vs6624_write(sd, VS6624_IMG_FMT0, 0x0); 609 vs6624_write(sd, VS6624_IMG_FMT0, 0x0);
610 vs6624_write(sd, VS6624_YUV_SETUP, 0x1); 610 vs6624_write(sd, VS6624_YUV_SETUP, 0x1);
611 break; 611 break;
612 case V4L2_MBUS_FMT_YUYV8_2X8: 612 case MEDIA_BUS_FMT_YUYV8_2X8:
613 vs6624_write(sd, VS6624_IMG_FMT0, 0x0); 613 vs6624_write(sd, VS6624_IMG_FMT0, 0x0);
614 vs6624_write(sd, VS6624_YUV_SETUP, 0x3); 614 vs6624_write(sd, VS6624_YUV_SETUP, 0x3);
615 break; 615 break;
616 case V4L2_MBUS_FMT_RGB565_2X8_LE: 616 case MEDIA_BUS_FMT_RGB565_2X8_LE:
617 vs6624_write(sd, VS6624_IMG_FMT0, 0x4); 617 vs6624_write(sd, VS6624_IMG_FMT0, 0x4);
618 vs6624_write(sd, VS6624_RGB_SETUP, 0x0); 618 vs6624_write(sd, VS6624_RGB_SETUP, 0x0);
619 break; 619 break;