[PATCH 23/30] drm/sun4i: vi_scaler: Update DE33 base calculation
Chen-Yu Tsai
wens at kernel.org
Mon Nov 3 09:00:15 PST 2025
On Mon, Oct 13, 2025 at 3:24 AM Jernej Skrabec <jernej.skrabec at gmail.com> wrote:
>
> Now that channel base calculation is straightforward, let's update VI
> scaler base calculation to be simpler. At the same time, also introduce
> macro to avoid magic numbers.
>
> Note, reason why current magic value and new macro value isn't the same
> is because sun8i_channel_base() already introduces offset to channel
> registers. Previous value is just the difference to VI scaler registers.
> However, new code calculates scaler base from channel base. This is also
> easier to understand when looking into BSP driver. Macro value can be
> easily found whereas old diff value was not.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec at gmail.com>
Reviewed-by: Chen-Yu Tsai <wens at kernel.org>
More information about the linux-arm-kernel
mailing list