mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 14:02:06 -04:00
drm/amdgpu: Rename misspelled function
Instead of fixing the spelling in amdgpu_ras_eeprom_process_recods(), rename it to, amdgpu_ras_eeprom_xfer(), to look similar to other I2C and protocol transfer (read/write) functions. Also to keep the column span to within reason by using a shorter name. Change the "num" function parameter from "int" to "const u32" since it is the number of items (records) to xfer, i.e. their count, which cannot be a negative number. Also swap the order of parameters, keeping the pointer to records and their number next to each other, while the direction now becomes the last parameter. Cc: Jean Delvare <jdelvare@suse.de> Cc: Alexander Deucher <Alexander.Deucher@amd.com> Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Cc: Lijo Lazar <Lijo.Lazar@amd.com> Cc: Stanley Yang <Stanley.Yang@amd.com> Cc: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Acked-by: Alexander Deucher <Alexander.Deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
c28aa44de8
commit
a43996573a
@@ -432,9 +432,9 @@ bool amdgpu_ras_eeprom_check_err_threshold(struct amdgpu_device *adev)
|
||||
return false;
|
||||
}
|
||||
|
||||
int amdgpu_ras_eeprom_process_recods(struct amdgpu_ras_eeprom_control *control,
|
||||
struct eeprom_table_record *records,
|
||||
bool write, int num)
|
||||
int amdgpu_ras_eeprom_xfer(struct amdgpu_ras_eeprom_control *control,
|
||||
struct eeprom_table_record *records,
|
||||
const u32 num, bool write)
|
||||
{
|
||||
int i, ret = 0;
|
||||
unsigned char *buffs, *buff;
|
||||
@@ -574,13 +574,13 @@ void amdgpu_ras_eeprom_test(struct amdgpu_ras_eeprom_control *control)
|
||||
recs[i].retired_page = i;
|
||||
}
|
||||
|
||||
if (!amdgpu_ras_eeprom_process_recods(control, recs, true, 1)) {
|
||||
if (!amdgpu_ras_eeprom_xfer(control, recs, 1, true)) {
|
||||
|
||||
memset(recs, 0, sizeof(*recs) * 1);
|
||||
|
||||
control->next_addr = RAS_RECORD_START;
|
||||
|
||||
if (!amdgpu_ras_eeprom_process_recods(control, recs, false, 1)) {
|
||||
if (!amdgpu_ras_eeprom_xfer(control, recs, 1, false)) {
|
||||
for (i = 0; i < 1; i++)
|
||||
DRM_INFO("rec.address :0x%llx, rec.retired_page :%llu",
|
||||
recs[i].address, recs[i].retired_page);
|
||||
|
||||
Reference in New Issue
Block a user