[media] v4l: vsp1: Use pipeline display list to decide how to write to modules

This allows getting rid of the vsp1_device::use_dl field.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Laurent Pinchart
2015-11-01 10:46:25 -02:00
committed by Mauro Carvalho Chehab
parent 94d48e56d3
commit aa380ea0c5
6 changed files with 20 additions and 32 deletions

View File

@@ -85,8 +85,6 @@ struct vsp1_device {
struct media_entity_operations media_ops;
struct vsp1_drm *drm;
bool use_dl;
};
int vsp1_device_get(struct vsp1_device *vsp1);
@@ -104,14 +102,4 @@ static inline void vsp1_write(struct vsp1_device *vsp1, u32 reg, u32 data)
iowrite32(data, vsp1->mmio + reg);
}
#include "vsp1_dl.h"
static inline void vsp1_mod_write(struct vsp1_entity *e, u32 reg, u32 data)
{
if (e->vsp1->use_dl)
vsp1_dl_add(e, reg, data);
else
vsp1_write(e->vsp1, reg, data);
}
#endif /* __VSP1_H__ */