diff options
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_hsit.c')
-rw-r--r-- | drivers/media/platform/vsp1/vsp1_hsit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_hsit.c b/drivers/media/platform/vsp1/vsp1_hsit.c index db2950a73c60..80bedc554ee3 100644 --- a/drivers/media/platform/vsp1/vsp1_hsit.c +++ b/drivers/media/platform/vsp1/vsp1_hsit.c | |||
@@ -70,9 +70,9 @@ static int hsit_enum_mbus_code(struct v4l2_subdev *subdev, | |||
70 | 70 | ||
71 | if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | | 71 | if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | |
72 | (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) | 72 | (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) |
73 | code->code = V4L2_MBUS_FMT_ARGB8888_1X32; | 73 | code->code = MEDIA_BUS_FMT_ARGB8888_1X32; |
74 | else | 74 | else |
75 | code->code = V4L2_MBUS_FMT_AHSV8888_1X32; | 75 | code->code = MEDIA_BUS_FMT_AHSV8888_1X32; |
76 | 76 | ||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
@@ -136,8 +136,8 @@ static int hsit_set_format(struct v4l2_subdev *subdev, | |||
136 | return 0; | 136 | return 0; |
137 | } | 137 | } |
138 | 138 | ||
139 | format->code = hsit->inverse ? V4L2_MBUS_FMT_AHSV8888_1X32 | 139 | format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 |
140 | : V4L2_MBUS_FMT_ARGB8888_1X32; | 140 | : MEDIA_BUS_FMT_ARGB8888_1X32; |
141 | format->width = clamp_t(unsigned int, fmt->format.width, | 141 | format->width = clamp_t(unsigned int, fmt->format.width, |
142 | HSIT_MIN_SIZE, HSIT_MAX_SIZE); | 142 | HSIT_MIN_SIZE, HSIT_MAX_SIZE); |
143 | format->height = clamp_t(unsigned int, fmt->format.height, | 143 | format->height = clamp_t(unsigned int, fmt->format.height, |
@@ -151,8 +151,8 @@ static int hsit_set_format(struct v4l2_subdev *subdev, | |||
151 | format = vsp1_entity_get_pad_format(&hsit->entity, fh, HSIT_PAD_SOURCE, | 151 | format = vsp1_entity_get_pad_format(&hsit->entity, fh, HSIT_PAD_SOURCE, |
152 | fmt->which); | 152 | fmt->which); |
153 | *format = fmt->format; | 153 | *format = fmt->format; |
154 | format->code = hsit->inverse ? V4L2_MBUS_FMT_ARGB8888_1X32 | 154 | format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 |
155 | : V4L2_MBUS_FMT_AHSV8888_1X32; | 155 | : MEDIA_BUS_FMT_AHSV8888_1X32; |
156 | 156 | ||
157 | return 0; | 157 | return 0; |
158 | } | 158 | } |