]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4c0173d3e831ca024715f43ca7a9f37310f48a9
tree052876f1716fe6be5fa2cd07a1016412fe734b81
parent20e58a4eea582d09adfeafbe8f6388f13f4c6526
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