Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: atomfirmware.h: fix multiple spelling mistakes

This patch corrects several typographical errors in atomfirmware.h.
The fixes improve readability and maintain consistency in the codebase.
No functional changes are introduced.

Corrected terms include:
- aligment → alignment
- Offest → Offset
- defintion → definition
- swithing → switching
- calcualted → calculated
- compability → compatibility
- intenal → internal
- sequece → sequence
- indiate → indicate
- stucture → structure
- regiser → register

Signed-off-by: Yugansh Mittal <mittalyugansh1@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yugansh Mittal and committed by
Alex Deucher
03c69957 7e2a5b0a

+15 -15
+15 -15
drivers/gpu/drm/amd/include/atomfirmware.h
··· 211 211 }; 212 212 */ 213 213 214 - #pragma pack(1) /* BIOS data must use byte aligment*/ 214 + #pragma pack(1) /* BIOS data must use byte alignment*/ 215 215 216 216 enum atombios_image_offset{ 217 217 OFFSET_TO_ATOM_ROM_HEADER_POINTER = 0x00000048, ··· 255 255 uint16_t subsystem_vendor_id; 256 256 uint16_t subsystem_id; 257 257 uint16_t pci_info_offset; 258 - uint16_t masterhwfunction_offset; //Offest for SW to get all command function offsets, Don't change the position 259 - uint16_t masterdatatable_offset; //Offest for SW to get all data table offsets, Don't change the position 258 + uint16_t masterhwfunction_offset; //Offset for SW to get all command function offsets, Don't change the position 259 + uint16_t masterdatatable_offset; //Offset for SW to get all data table offsets, Don't change the position 260 260 uint16_t reserved; 261 261 uint32_t pspdirtableoffset; 262 262 }; ··· 453 453 uint8_t refreshrate; 454 454 }; 455 455 456 - /* atom_dtd_format.modemiscinfo defintion */ 456 + /* atom_dtd_format.modemiscinfo definition */ 457 457 enum atom_dtd_format_modemiscinfo{ 458 458 ATOM_HSYNC_POLARITY = 0x0002, 459 459 ATOM_VSYNC_POLARITY = 0x0004, ··· 678 678 uint32_t reserved1[8]; 679 679 }; 680 680 681 - /* lcd_info_v2_1.panel_misc defintion */ 681 + /* lcd_info_v2_1.panel_misc definition */ 682 682 enum atom_lcd_info_panel_misc{ 683 683 ATOM_PANEL_MISC_FPDI =0x0002, 684 684 }; ··· 716 716 /* gpio_id pre-define id for multiple usage */ 717 717 /* GPIO use to control PCIE_VDDC in certain SLT board */ 718 718 PCIE_VDDC_CONTROL_GPIO_PINID = 56, 719 - /* if PP_AC_DC_SWITCH_GPIO_PINID in Gpio_Pin_LutTable, AC/DC swithing feature is enable */ 719 + /* if PP_AC_DC_SWITCH_GPIO_PINID in Gpio_Pin_LutTable, AC/DC switching feature is enable */ 720 720 PP_AC_DC_SWITCH_GPIO_PINID = 60, 721 721 /* VDDC_REGULATOR_VRHOT_GPIO_PINID in Gpio_Pin_LutTable, VRHot feature is enable */ 722 722 VDDC_VRHOT_GPIO_PINID = 61, ··· 734 734 struct atom_gpio_pin_lut_v2_1 735 735 { 736 736 struct atom_common_table_header table_header; 737 - /*the real number of this included in the structure is calcualted by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */ 737 + /*the real number of this included in the structure is calculated by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */ 738 738 struct atom_gpio_pin_assignment gpio_pin[]; 739 739 }; 740 740 ··· 997 997 998 998 enum atom_display_device_tag_def{ 999 999 ATOM_DISPLAY_LCD1_SUPPORT = 0x0002, //an embedded display is either an LVDS or eDP signal type of display 1000 - ATOM_DISPLAY_LCD2_SUPPORT = 0x0020, //second edp device tag 0x0020 for backward compability 1000 + ATOM_DISPLAY_LCD2_SUPPORT = 0x0020, //second edp device tag 0x0020 for backward compatibility 1001 1001 ATOM_DISPLAY_DFP1_SUPPORT = 0x0008, 1002 1002 ATOM_DISPLAY_DFP2_SUPPORT = 0x0080, 1003 1003 ATOM_DISPLAY_DFP3_SUPPORT = 0x0200, ··· 1011 1011 { 1012 1012 uint16_t display_objid; //Connector Object ID or Misc Object ID 1013 1013 uint16_t disp_recordoffset; 1014 - uint16_t encoderobjid; //first encoder closer to the connector, could be either an external or intenal encoder 1014 + uint16_t encoderobjid; //first encoder closer to the connector, could be either an external or internal encoder 1015 1015 uint16_t extencoderobjid; //2nd encoder after the first encoder, from the connector point of view; 1016 1016 uint16_t encoder_recordoffset; 1017 1017 uint16_t extencoder_recordoffset; ··· 1023 1023 struct atom_display_object_path_v3 { 1024 1024 uint16_t display_objid; //Connector Object ID or Misc Object ID 1025 1025 uint16_t disp_recordoffset; 1026 - uint16_t encoderobjid; //first encoder closer to the connector, could be either an external or intenal encoder 1026 + uint16_t encoderobjid; //first encoder closer to the connector, could be either an external or internal encoder 1027 1027 uint16_t reserved1; //only on USBC case, otherwise always = 0 1028 1028 uint16_t reserved2; //reserved and always = 0 1029 1029 uint16_t reserved3; //reserved and always = 0 ··· 3547 3547 enum atom_voltage_object_mode 3548 3548 { 3549 3549 VOLTAGE_OBJ_GPIO_LUT = 0, //VOLTAGE and GPIO Lookup table ->atom_gpio_voltage_object_v4 3550 - VOLTAGE_OBJ_VR_I2C_INIT_SEQ = 3, //VOLTAGE REGULATOR INIT sequece through I2C -> atom_i2c_voltage_object_v4 3550 + VOLTAGE_OBJ_VR_I2C_INIT_SEQ = 3, //VOLTAGE REGULATOR INIT sequence through I2C -> atom_i2c_voltage_object_v4 3551 3551 VOLTAGE_OBJ_PHASE_LUT = 4, //Set Vregulator Phase lookup table ->atom_gpio_voltage_object_v4 3552 3552 VOLTAGE_OBJ_SVID2 = 7, //Indicate voltage control by SVID2 ->atom_svid2_voltage_object_v4 3553 3553 VOLTAGE_OBJ_EVV = 8, ··· 3585 3585 { 3586 3586 struct atom_voltage_object_header_v4 header; // voltage mode = VOLTAGE_OBJ_GPIO_LUT or VOLTAGE_OBJ_PHASE_LUT 3587 3587 uint8_t gpio_control_id; // default is 0 which indicate control through CG VID mode 3588 - uint8_t gpio_entry_num; // indiate the entry numbers of Votlage/Gpio value Look up table 3588 + uint8_t gpio_entry_num; // indicate the entry numbers of Votlage/Gpio value Look up table 3589 3589 uint8_t phase_delay_us; // phase delay in unit of micro second 3590 3590 uint8_t reserved; 3591 3591 uint32_t gpio_mask_val; // GPIO Mask value ··· 4507 4507 struct uefi_acpi_vfct{ 4508 4508 struct amd_acpi_description_header sheader; 4509 4509 uint8_t tableUUID[16]; //0x24 4510 - uint32_t vbiosimageoffset; //0x34. Offset to the first GOP_VBIOS_CONTENT block from the beginning of the stucture. 4511 - uint32_t lib1Imageoffset; //0x38. Offset to the first GOP_LIB1_CONTENT block from the beginning of the stucture. 4510 + uint32_t vbiosimageoffset; //0x34. Offset to the first GOP_VBIOS_CONTENT block from the beginning of the structure. 4511 + uint32_t lib1Imageoffset; //0x38. Offset to the first GOP_LIB1_CONTENT block from the beginning of the structure. 4512 4512 uint32_t reserved[4]; //0x3C 4513 4513 }; 4514 4514 ··· 4540 4540 /* 4541 4541 *************************************************************************** 4542 4542 Scratch Register definitions 4543 - Each number below indicates which scratch regiser request, Active and 4543 + Each number below indicates which scratch register request, Active and 4544 4544 Connect all share the same definitions as display_device_tag defines 4545 4545 *************************************************************************** 4546 4546 */