summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea G. Monaco <andrea.monaco@autistici.org>2021-02-21 00:25:35 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-02-21 00:25:35 +0100
commit70155c3a8a657994ad3f80697d3beb1365acde51 (patch)
treefb2cf05b6d92852eb7a4a1f7b9126150a6d7f847
parent307130477110d33ab193f4f5376847d2234c1aca (diff)
ahci: Fix variable name
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Rename spd to det.
-rw-r--r--linux/dev/drivers/block/ahci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c
index 6d5c2858..ce2ac403 100644
--- a/linux/dev/drivers/block/ahci.c
+++ b/linux/dev/drivers/block/ahci.c
@@ -895,7 +895,7 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device)
for (i = 0; i < AHCI_MAX_PORTS; i++) {
u32 ssts;
- u8 spd, ipm;
+ u8 det, ipm;
if (!(port_map & (1U << i)))
continue;
@@ -903,8 +903,8 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device)
ahci_port = &ahci_host->ports[i];
ssts = readl(&ahci_port->ssts);
- spd = ssts & 0xf;
- switch (spd)
+ det = ssts & 0xf;
+ switch (det)
{
case 0x0:
/* Device not present */
@@ -919,7 +919,7 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device)
printk("ahci: %02x:%02x.%x: Port %u phy offline?!\n", bus, dev, fun, i);
continue;
default:
- printk("ahci: %02x:%02x.%x: Unknown port %u SPD %x\n", bus, dev, fun, i, spd);
+ printk("ahci: %02x:%02x.%x: Unknown port %u DET %x\n", bus, dev, fun, i, det);
continue;
}