"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd: tlv_eeprom: fix typo errors in comments and error msg

Fix typo errors in comments and error message by replacing EERPOM->EEPROM.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

authored by

Hugo Villeneuve and committed by
Stefan Roese
dedef8f6 182cb300

+5 -5
+5 -5
cmd/tlv_eeprom.c
··· 41 41 static int set_bytes(char *buf, const char *string, int *converted_accum); 42 42 static void show_tlv_devices(int current_dev); 43 43 44 - /* The EERPOM contents after being read into memory */ 44 + /* The EEPROM contents after being read into memory */ 45 45 static u8 eeprom[TLV_INFO_MAX_LEN]; 46 46 47 47 static struct udevice *tlv_devices[MAX_TLV_DEVICES]; ··· 430 430 static int has_been_read; 431 431 int ret; 432 432 433 - // If no arguments, read the EERPOM and display its contents 433 + // If no arguments, read the EEPROM and display its contents 434 434 if (argc == 1) { 435 435 if (!has_been_read) { 436 436 ret = read_eeprom(current_dev, eeprom); ··· 560 560 /** 561 561 * tlvinfo_find_tlv 562 562 * 563 - * This function finds the TLV with the supplied code in the EERPOM. 563 + * This function finds the TLV with the supplied code in the EEPROM. 564 564 * An offset from the beginning of the EEPROM is returned in the 565 565 * eeprom_index parameter if the TLV is found. 566 566 */ ··· 631 631 char data[MAX_TLV_VALUE_LEN]; 632 632 int eeprom_index; 633 633 634 - // Encode each TLV type into the format to be stored in the EERPOM 634 + // Encode each TLV type into the format to be stored in the EEPROM 635 635 switch (tcode) { 636 636 case TLV_CODE_PRODUCT_NAME: 637 637 case TLV_CODE_PART_NUMBER: ··· 691 691 // Is there room for this TLV? 692 692 if ((be16_to_cpu(eeprom_hdr->totallen) + ENT_SIZE + new_tlv_len) > 693 693 TLV_TOTAL_LEN_MAX) { 694 - printf("ERROR: There is not enough room in the EERPOM to save data.\n"); 694 + printf("ERROR: There is not enough room in the EEPROM to save data.\n"); 695 695 return false; 696 696 } 697 697