Commit 1ca489fc authored by Colin Ian King's avatar Colin Ian King Committed by Alex Deucher

drm/amd/display: fix spelling mistake: synatpics -> synaptics

There are quite a few spelling mistakes in various function names
and error messages. Fix these.
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f89154b6
...@@ -539,7 +539,7 @@ bool dm_helpers_submit_i2c( ...@@ -539,7 +539,7 @@ bool dm_helpers_submit_i2c(
} }
#if defined(CONFIG_DRM_AMD_DC_DCN) #if defined(CONFIG_DRM_AMD_DC_DCN)
static bool execute_synatpics_rc_command(struct drm_dp_aux *aux, static bool execute_synaptics_rc_command(struct drm_dp_aux *aux,
bool is_write_cmd, bool is_write_cmd,
unsigned char cmd, unsigned char cmd,
unsigned int length, unsigned int length,
...@@ -578,7 +578,7 @@ static bool execute_synatpics_rc_command(struct drm_dp_aux *aux, ...@@ -578,7 +578,7 @@ static bool execute_synatpics_rc_command(struct drm_dp_aux *aux,
ret = drm_dp_dpcd_write(aux, SYNAPTICS_RC_COMMAND, &rc_cmd, sizeof(rc_cmd)); ret = drm_dp_dpcd_write(aux, SYNAPTICS_RC_COMMAND, &rc_cmd, sizeof(rc_cmd));
if (ret < 0) { if (ret < 0) {
DRM_ERROR(" execute_synatpics_rc_command - write cmd ..., err = %d\n", ret); DRM_ERROR(" execute_synaptics_rc_command - write cmd ..., err = %d\n", ret);
return false; return false;
} }
...@@ -600,7 +600,7 @@ static bool execute_synatpics_rc_command(struct drm_dp_aux *aux, ...@@ -600,7 +600,7 @@ static bool execute_synatpics_rc_command(struct drm_dp_aux *aux,
drm_dp_dpcd_read(aux, SYNAPTICS_RC_DATA, data, length); drm_dp_dpcd_read(aux, SYNAPTICS_RC_DATA, data, length);
} }
DC_LOG_DC(" execute_synatpics_rc_command - success = %d\n", success); DC_LOG_DC(" execute_synaptics_rc_command - success = %d\n", success);
return success; return success;
} }
...@@ -618,54 +618,54 @@ static void apply_synaptics_fifo_reset_wa(struct drm_dp_aux *aux) ...@@ -618,54 +618,54 @@ static void apply_synaptics_fifo_reset_wa(struct drm_dp_aux *aux)
data[3] = 'U'; data[3] = 'U';
data[4] = 'S'; data[4] = 'S';
if (!execute_synatpics_rc_command(aux, true, 0x01, 5, 0, data)) if (!execute_synaptics_rc_command(aux, true, 0x01, 5, 0, data))
return; return;
// Step 3 and 4 // Step 3 and 4
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x220998, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x220998, data))
return; return;
data[0] &= (~(1 << 1)); // set bit 1 to 0 data[0] &= (~(1 << 1)); // set bit 1 to 0
if (!execute_synatpics_rc_command(aux, true, 0x21, 4, 0x220998, data)) if (!execute_synaptics_rc_command(aux, true, 0x21, 4, 0x220998, data))
return; return;
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x220D98, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x220D98, data))
return; return;
data[0] &= (~(1 << 1)); // set bit 1 to 0 data[0] &= (~(1 << 1)); // set bit 1 to 0
if (!execute_synatpics_rc_command(aux, true, 0x21, 4, 0x220D98, data)) if (!execute_synaptics_rc_command(aux, true, 0x21, 4, 0x220D98, data))
return; return;
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x221198, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x221198, data))
return; return;
data[0] &= (~(1 << 1)); // set bit 1 to 0 data[0] &= (~(1 << 1)); // set bit 1 to 0
if (!execute_synatpics_rc_command(aux, true, 0x21, 4, 0x221198, data)) if (!execute_synaptics_rc_command(aux, true, 0x21, 4, 0x221198, data))
return; return;
// Step 3 and 5 // Step 3 and 5
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x220998, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x220998, data))
return; return;
data[0] |= (1 << 1); // set bit 1 to 1 data[0] |= (1 << 1); // set bit 1 to 1
if (!execute_synatpics_rc_command(aux, true, 0x21, 4, 0x220998, data)) if (!execute_synaptics_rc_command(aux, true, 0x21, 4, 0x220998, data))
return; return;
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x220D98, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x220D98, data))
return; return;
data[0] |= (1 << 1); // set bit 1 to 1 data[0] |= (1 << 1); // set bit 1 to 1
return; return;
if (!execute_synatpics_rc_command(aux, false, 0x31, 4, 0x221198, data)) if (!execute_synaptics_rc_command(aux, false, 0x31, 4, 0x221198, data))
return; return;
data[0] |= (1 << 1); // set bit 1 to 1 data[0] |= (1 << 1); // set bit 1 to 1
if (!execute_synatpics_rc_command(aux, true, 0x21, 4, 0x221198, data)) if (!execute_synaptics_rc_command(aux, true, 0x21, 4, 0x221198, data))
return; return;
// Step 6 // Step 6
if (!execute_synatpics_rc_command(aux, true, 0x02, 0, 0, NULL)) if (!execute_synaptics_rc_command(aux, true, 0x02, 0, 0, NULL))
return; return;
DC_LOG_DC("Done apply_synaptics_fifo_reset_wa\n"); DC_LOG_DC("Done apply_synaptics_fifo_reset_wa\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment