Skip to content

Commit de321dc

Browse files
fltorobclark
authored andcommitted
drm/msm/dpu: use right setup_blend_config for sm8150 and sm8250
All DPU versions starting from 4.0 use the sdm845 version, so check for that instead of checking each version individually. This chooses the right function for sm8150 and sm8250. Signed-off-by: Jonathan Marek <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent d0bac4e commit de321dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,13 @@ static void _setup_mixer_ops(const struct dpu_mdss_cfg *m,
152152
unsigned long features)
153153
{
154154
ops->setup_mixer_out = dpu_hw_lm_setup_out;
155-
if (IS_SDM845_TARGET(m->hwversion) || IS_SDM670_TARGET(m->hwversion)
156-
|| IS_SC7180_TARGET(m->hwversion))
155+
if (m->hwversion >= DPU_HW_VER_400)
157156
ops->setup_blend_config = dpu_hw_lm_setup_blend_config_sdm845;
158157
else
159158
ops->setup_blend_config = dpu_hw_lm_setup_blend_config;
160159
ops->setup_alpha_out = dpu_hw_lm_setup_color3;
161160
ops->setup_border_color = dpu_hw_lm_setup_border_color;
162-
};
161+
}
163162

164163
static struct dpu_hw_blk_ops dpu_hw_ops;
165164

0 commit comments

Comments
 (0)