[media] i2c: Make use of media_bus_format enum
In order to have subsytem agnostic media bus format definitions we've moved media bus definitions to include/uapi/linux/media-bus-format.h and prefixed values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Replace all references to the old definitions in i2c drivers. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
32b32ce84a
commit
f5fe58fd76
@ -1877,12 +1877,12 @@ static int adv7842_s_routing(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int adv7842_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
|
||||
enum v4l2_mbus_pixelcode *code)
|
||||
u32 *code)
|
||||
{
|
||||
if (index)
|
||||
return -EINVAL;
|
||||
/* Good enough for now */
|
||||
*code = V4L2_MBUS_FMT_FIXED;
|
||||
*code = MEDIA_BUS_FMT_FIXED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1893,7 +1893,7 @@ static int adv7842_g_mbus_fmt(struct v4l2_subdev *sd,
|
||||
|
||||
fmt->width = state->timings.bt.width;
|
||||
fmt->height = state->timings.bt.height;
|
||||
fmt->code = V4L2_MBUS_FMT_FIXED;
|
||||
fmt->code = MEDIA_BUS_FMT_FIXED;
|
||||
fmt->field = V4L2_FIELD_NONE;
|
||||
|
||||
if (state->mode == ADV7842_MODE_SDP) {
|
||||
|
Reference in New Issue
Block a user