From d74380ba0e6318d97907b675cef0a02c5a15771e Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Mon, 10 Dec 2018 09:26:19 +0000 Subject: drm/selftest: fix spelling mistake "dimention" -> "dimension" There is a spelling mistake in a pr_err message, fix this. Signed-off-by: Colin Ian King Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/selftests/test-drm_damage_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/drm') diff --git a/drivers/gpu/drm/selftests/test-drm_damage_helper.c b/drivers/gpu/drm/selftests/test-drm_damage_helper.c index a2f753205a3e..9d2bcdf8bc29 100644 --- a/drivers/gpu/drm/selftests/test-drm_damage_helper.c +++ b/drivers/gpu/drm/selftests/test-drm_damage_helper.c @@ -53,7 +53,7 @@ static bool check_damage_clip(struct drm_plane_state *state, struct drm_rect *r, int src_y2 = (state->src.y2 >> 16) + !!(state->src.y2 & 0xFFFF); if (x1 >= x2 || y1 >= y2) { - pr_err("Cannot have damage clip with no dimention.\n"); + pr_err("Cannot have damage clip with no dimension.\n"); return false; } -- cgit v1.2.3 From 0660d8cd83938ef5cc91582fe6f951e8935f2d0f Mon Sep 17 00:00:00 2001 From: Deepak Rawat Date: Thu, 6 Dec 2018 11:44:44 -0800 Subject: drm: Fix docs warning in drm_damage_helper.c Modify description to match actual argument list. Signed-off-by: Deepak Rawat Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/drm_damage_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/drm') diff --git a/drivers/gpu/drm/drm_damage_helper.c b/drivers/gpu/drm/drm_damage_helper.c index 05c8e7267165..d2a1c7372f36 100644 --- a/drivers/gpu/drm/drm_damage_helper.c +++ b/drivers/gpu/drm/drm_damage_helper.c @@ -250,7 +250,7 @@ EXPORT_SYMBOL(drm_atomic_helper_dirtyfb); * drm_atomic_helper_damage_iter_init - Initialize the damage iterator. * @iter: The iterator to initialize. * @old_state: Old plane state for validation. - * @new_state: Plane state from which to iterate the damage clips. + * @state: Plane state from which to iterate the damage clips. * * Initialize an iterator, which clips plane damage * &drm_plane_state.fb_damage_clips to plane &drm_plane_state.src. This iterator -- cgit v1.2.3