On Mon, Oct 13, 2025 at 3:24 AM Jernej Skrabec <[email protected]> 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 <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
