drm/sti: Fix spelling mistake "top_cmd_offest" -> "top_cmd_offset"
Subsystems (4)
PATCH 1/1 drm/sti: Fix spelling mistake "top_cmd_offest" -> "top_cmd_offset"
There is a spelling mistake in a variable name. Fix it.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/gpu/drm/sti/sti_hqvdp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/sti/sti_hqvdp.c +4 -4
@@ -797,7 +797,7 @@ static void sti_hqvdp_disable(struct sti_hqvdp *hqvdp)static int sti_hqvdp_vtg_cb (struct notifier_block *nb,unsigned long evt,void *data) { struct sti_hqvdp *hqvdp = container_of(nb, struct sti_hqvdp, vtg_nb); -int btm_cmd_offset, top_cmd_offest; +int btm_cmd_offset, top_cmd_offset;struct sti_hqvdp_cmd *btm_cmd, *top_cmd;if ((evt !=VTG_TOP_FIELD_EVENT ) && (evt !=VTG_BOTTOM_FIELD_EVENT )) {
@@ -816,14 +816,14 @@ static int sti_hqvdp_vtg_cb(struct notifier_block *nb, unsigned long evt, void *if (hqvdp->btm_field_pending) {/* Create the btm field command from the current one */ btm_cmd_offset =sti_hqvdp_get_free_cmd (hqvdp); - top_cmd_offest =sti_hqvdp_get_curr_cmd (hqvdp); -if ((btm_cmd_offset ==-1 ) || (top_cmd_offest ==-1 )) { + top_cmd_offset =sti_hqvdp_get_curr_cmd (hqvdp); +if ((btm_cmd_offset ==-1 ) || (top_cmd_offset ==-1 )) {DRM_DEBUG_DRIVER ("Warning: no cmd, will skip field\n" );return -EBUSY ; } btm_cmd = hqvdp->hqvdp_cmd + btm_cmd_offset; - top_cmd = hqvdp->hqvdp_cmd + top_cmd_offest; + top_cmd = hqvdp->hqvdp_cmd + top_cmd_offset;memcpy (btm_cmd, top_cmd,sizeof (*btm_cmd));
Signature · 1 line
2.30.2
Hi,
thanks for the patch.
Quoted 29 lines · Colin Ian King
There is a spelling mistake in a variable name. Fix it.
Signed-off-by Colin Ian King <[email protected]>--- drivers/gpu/drm/sti/sti_hqvdp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/sti/sti_hqvdp.c +3
-3@@ -797,7 +797,7 @@ static void sti_hqvdp_disable(struct sti_hqvdp *hqvdp)static int sti_hqvdp_vtg_cb (struct notifier_block *nb,unsigned long evt,void *data) { struct sti_hqvdp *hqvdp = container_of(nb, struct sti_hqvdp, vtg_nb); -int btm_cmd_offset, top_cmd_offest; +int btm_cmd_offset, top_cmd_offset;struct sti_hqvdp_cmd *btm_cmd, *top_cmd;if ((evt !=VTG_TOP_FIELD_EVENT ) && (evt !=VTG_BOTTOM_FIELD_EVENT )) {@@ -816,14 +816,14 @@ static int sti_hqvdp_vtg_cb(struct notifier_block *nb, unsigned long evt, void *if (hqvdp->btm_field_pending) {/* Create the btm field command from the current one */ btm_cmd_offset =sti_hqvdp_get_free_cmd (hqvdp); - top_cmd_offest =sti_hqvdp_get_curr_cmd (hqvdp); -if ((btm_cmd_offset ==-1 ) || (top_cmd_offest ==-1 )) { + top_cmd_offset =sti_hqvdp_get_curr_cmd (hqvdp); +if ((btm_cmd_offset ==-1 ) || (top_cmd_offset ==-1 )) {
drivers/gpu/drm/sti/sti_hqvdp.c static int sti_hqvdp_vtg_cb(struct notifier_block *nb, unsigned long evt, void * · line 829
Quoted 10 lines
drivers/gpu/drm/sti/sti_hqvdp.c +1
-1DRM_DEBUG_DRIVER ("Warning: no cmd, will skip field\n" );return -EBUSY ; } btm_cmd = hqvdp->hqvdp_cmd + btm_cmd_offset; - top_cmd = hqvdp->hqvdp_cmd + top_cmd_offest; + top_cmd = hqvdp->hqvdp_cmd + top_cmd_offset;memcpy (btm_cmd, top_cmd,sizeof (*btm_cmd));
Acked-by Alain Volmat <[email protected]>
Alain
Quoted 2 lines
2.30.2