Skip to content

Commit ed9244b

Browse files
committed
Merge tag 'drm-misc-fixes-2020-05-28' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
Two ingenic fixes, one for a wrong cast, the other for a typo in a comparison Signed-off-by: Dave Airlie <[email protected]> From: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents ed52a9b + abf56fa commit ed9244b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/ingenic/ingenic-drm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ static int ingenic_drm_crtc_atomic_check(struct drm_crtc *crtc,
328328
if (!drm_atomic_crtc_needs_modeset(state))
329329
return 0;
330330

331-
if (state->mode.hdisplay > priv->soc_info->max_height ||
332-
state->mode.vdisplay > priv->soc_info->max_width)
331+
if (state->mode.hdisplay > priv->soc_info->max_width ||
332+
state->mode.vdisplay > priv->soc_info->max_height)
333333
return -EINVAL;
334334

335335
rate = clk_round_rate(priv->pix_clk,
@@ -474,7 +474,7 @@ static int ingenic_drm_encoder_atomic_check(struct drm_encoder *encoder,
474474

475475
static irqreturn_t ingenic_drm_irq_handler(int irq, void *arg)
476476
{
477-
struct ingenic_drm *priv = arg;
477+
struct ingenic_drm *priv = drm_device_get_priv(arg);
478478
unsigned int state;
479479

480480
regmap_read(priv->map, JZ_REG_LCD_STATE, &state);

0 commit comments

Comments
 (0)