media: v4l: vsp1: Remove redundant context variables
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 4 Aug 2017 16:32:41 +0000 (12:32 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:30:55 +0000 (09:30 -0400)
commit62dad91c29f36799bf778178f52864a749603d4f
tree052876f1716fe6be5fa2cd07a1016412fe734b81
parent25b6beabd0f918c38d4f830c5a60feda2e146e43
media: v4l: vsp1: Remove redundant context variables

The vsp1_pipe object context variables for div_size and
current_partition allowed state to be maintained through processing the
partitions during processing.

Now that the partition tables are calculated during stream on, there is
no requirement to store these variables in the pipe object.

Utilise local variables for the processing as required.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_pipe.h
drivers/media/platform/vsp1/vsp1_video.c