]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: renesas: vsp1: Simplify partition calculation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 16 Nov 2023 01:00:41 +0000 (03:00 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2024 22:36:47 +0000 (01:36 +0300)
commita143156c85b2118b972156386116e3bdc6564a19
tree2adba732c390cf047bf47bde66b412826523fd07
parente575095d28b331179c737cb08a95cde5ab647557
media: renesas: vsp1: Simplify partition calculation

When calculation a partition in vsp1_pipeline_calculate_partition(),
there is no need to handle the case where the whole image is covered by
a single partition locally. In that case, the index and div_size
parameters are 0 and format->width respectively, which makes the general
code behave exactly as the special case. Drop the special case.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
drivers/media/platform/renesas/vsp1/vsp1_pipe.c