mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
media: v4l2-subdev.h: increase struct v4l2_subdev name size
This resolves a lot of the string truncate compiler warnings. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
9cc0f40cac
commit
d9d432af14
2 changed files with 2 additions and 2 deletions
|
@ -1260,7 +1260,7 @@ static int csi2_init_entities(struct iss_csi2_device *csi2, const char *subname)
|
||||||
struct media_pad *pads = csi2->pads;
|
struct media_pad *pads = csi2->pads;
|
||||||
struct media_entity *me = &sd->entity;
|
struct media_entity *me = &sd->entity;
|
||||||
int ret;
|
int ret;
|
||||||
char name[V4L2_SUBDEV_NAME_SIZE];
|
char name[32];
|
||||||
|
|
||||||
v4l2_subdev_init(sd, &csi2_ops);
|
v4l2_subdev_init(sd, &csi2_ops);
|
||||||
sd->internal_ops = &csi2_internal_ops;
|
sd->internal_ops = &csi2_internal_ops;
|
||||||
|
|
|
@ -951,7 +951,7 @@ struct v4l2_subdev_internal_ops {
|
||||||
void (*release)(struct v4l2_subdev *sd);
|
void (*release)(struct v4l2_subdev *sd);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define V4L2_SUBDEV_NAME_SIZE 32
|
#define V4L2_SUBDEV_NAME_SIZE 52
|
||||||
|
|
||||||
/* Set this flag if this subdev is a i2c device. */
|
/* Set this flag if this subdev is a i2c device. */
|
||||||
#define V4L2_SUBDEV_FL_IS_I2C (1U << 0)
|
#define V4L2_SUBDEV_FL_IS_I2C (1U << 0)
|
||||||
|
|
Loading…
Reference in a new issue