ahci, ehci: Fix typos
authorColin Watson <cjwatson@ubuntu.com>
Sat, 16 Jan 2016 20:37:15 +0000 (20:37 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Sat, 16 Jan 2016 20:37:15 +0000 (20:37 +0000)
grub-core/bus/usb/ehci.c
grub-core/disk/ahci.c

index 8ece400..c986c24 100644 (file)
@@ -1121,7 +1121,7 @@ grub_ehci_free_tds (struct grub_ehci *e, grub_ehci_td_t td,
       token = grub_le_to_cpu32 (td->token);
       to_transfer = (token & GRUB_EHCI_TOTAL_MASK) >> GRUB_EHCI_TOTAL_OFF;
 
-      /* Check state of TD - if it did not transfered
+      /* Check state of TD - if it did not transfer
        * whole data then set last_trans - it should be last executed TD
        * in case when something went wrong. */
       if (transfer && (td->size != to_transfer))
index fc640d5..494a1b7 100644 (file)
@@ -32,7 +32,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
 struct grub_ahci_cmd_head
 {
   grub_uint32_t config;
-  grub_uint32_t transfered;
+  grub_uint32_t transferred;
   grub_uint64_t command_table_base;
   grub_uint32_t unused[4];
 };
@@ -954,7 +954,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
   grub_dprintf ("ahci", "AHCI tfd = %x\n",
                dev->hba->ports[dev->port].task_file_data);
 
-  dev->command_list[0].transfered = 0;
+  dev->command_list[0].transferred = 0;
   dev->command_list[0].command_table_base
     = grub_dma_get_phys (dev->command_table_chunk);
 
@@ -1044,7 +1044,7 @@ grub_ahci_readwrite_real (struct grub_ahci_device *dev,
                dev->hba->ports[dev->port].command_issue,
                dev->hba->ports[dev->port].intstatus,
                dev->hba->ports[dev->port].task_file_data,
-               dev->command_list[0].transfered,
+               dev->command_list[0].transferred,
                dev->hba->ports[dev->port].sata_error,
                ((grub_uint32_t *) grub_dma_get_virt (dev->rfis))[0x00],
                ((grub_uint32_t *) grub_dma_get_virt (dev->rfis))[0x18]);