mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
drm/sun4i: ui_scaler: drop sanity checks
They can't be triggered if mixer configuration is properly specified in quirks. Additionally, number of VI channels won't be available in future due to rework for DE33 support. Reviewed-by: Chen-Yu Tsai <wens@kernel.org> Tested-by: Ryan Walklin <ryan@testtoast.com> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20251104180942.61538-26-jernej.skrabec@gmail.com Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
This commit is contained in:
parent
7907cf1140
commit
a23e3402f6
|
|
@ -132,9 +132,6 @@ void sun8i_ui_scaler_enable(struct sun8i_layer *layer, bool enable)
|
|||
struct sun8i_mixer *mixer = layer->mixer;
|
||||
u32 val, base;
|
||||
|
||||
if (WARN_ON(layer->channel < mixer->cfg->vi_num))
|
||||
return;
|
||||
|
||||
base = sun8i_ui_scaler_base(mixer, layer->channel);
|
||||
|
||||
if (enable)
|
||||
|
|
@ -155,9 +152,6 @@ void sun8i_ui_scaler_setup(struct sun8i_layer *layer,
|
|||
int i, offset;
|
||||
u32 base;
|
||||
|
||||
if (WARN_ON(layer->channel < mixer->cfg->vi_num))
|
||||
return;
|
||||
|
||||
base = sun8i_ui_scaler_base(mixer, layer->channel);
|
||||
|
||||
hphase <<= SUN8I_UI_SCALER_PHASE_FRAC - 16;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user