Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b09ee40 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: vsp1: Remove unneeded entity streaming flag



The flag is set but never read, remove it.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4d346be5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -67,8 +67,6 @@ static int bru_s_stream(struct v4l2_subdev *subdev, int enable)
	unsigned int flags;
	unsigned int i;

	vsp1_entity_set_streaming(&bru->entity, enable);

	if (!enable)
		return 0;

+0 −23
Original line number Diff line number Diff line
@@ -33,27 +33,6 @@ void vsp1_mod_write(struct vsp1_entity *e, u32 reg, u32 data)
		vsp1_write(e->vsp1, reg, data);
}

bool vsp1_entity_is_streaming(struct vsp1_entity *entity)
{
	unsigned long flags;
	bool streaming;

	spin_lock_irqsave(&entity->lock, flags);
	streaming = entity->streaming;
	spin_unlock_irqrestore(&entity->lock, flags);

	return streaming;
}

void vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming)
{
	unsigned long flags;

	spin_lock_irqsave(&entity->lock, flags);
	entity->streaming = streaming;
	spin_unlock_irqrestore(&entity->lock, flags);
}

void vsp1_entity_route_setup(struct vsp1_entity *source)
{
	struct vsp1_entity *sink;
@@ -198,8 +177,6 @@ int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity,
	if (i == ARRAY_SIZE(vsp1_routes))
		return -EINVAL;

	spin_lock_init(&entity->lock);

	entity->vsp1 = vsp1;
	entity->source_pad = num_pads - 1;

+0 −6
Original line number Diff line number Diff line
@@ -73,9 +73,6 @@ struct vsp1_entity {

	struct v4l2_subdev subdev;
	struct v4l2_mbus_framefmt *formats;

	spinlock_t lock;		/* Protects the streaming field */
	bool streaming;
};

static inline struct vsp1_entity *to_vsp1_entity(struct v4l2_subdev *subdev)
@@ -100,9 +97,6 @@ vsp1_entity_get_pad_format(struct vsp1_entity *entity,
void vsp1_entity_init_formats(struct v4l2_subdev *subdev,
			      struct v4l2_subdev_pad_config *cfg);

bool vsp1_entity_is_streaming(struct vsp1_entity *entity);
void vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming);

void vsp1_entity_route_setup(struct vsp1_entity *source);

void vsp1_mod_write(struct vsp1_entity *e, u32 reg, u32 data);
+0 −2
Original line number Diff line number Diff line
@@ -46,8 +46,6 @@ static int rpf_s_stream(struct v4l2_subdev *subdev, int enable)
	u32 pstride;
	u32 infmt;

	vsp1_entity_set_streaming(&rpf->entity, enable);

	if (!enable)
		return 0;

+0 −2
Original line number Diff line number Diff line
@@ -114,8 +114,6 @@ static int sru_s_stream(struct v4l2_subdev *subdev, int enable)
	struct v4l2_mbus_framefmt *output;
	u32 ctrl0;

	vsp1_entity_set_streaming(&sru->entity, enable);

	if (!enable)
		return 0;

Loading