Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH] ata: libahci: use ahci_nr_ports() helper
@ 2026-04-23 16:43 Niklas Cassel
  2026-04-24  2:48 ` Damien Le Moal
  2026-04-27  8:13 ` Niklas Cassel
  0 siblings, 2 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-04-23 16:43 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide

Use ahci_nr_ports() helper instead of open coding the same.

No functional change.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index c79abdfcd7a9..7169e9e89034 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -2636,7 +2636,7 @@ void ahci_print_info(struct ata_host *host, const char *scc_s)
 		,
 
 		hweight32(impl),
-		(cap & 0x1f) + 1,
+		ahci_nr_ports(cap),
 		impl);
 
 	dev_info(host->dev,
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-27  8:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-23 16:43 [PATCH] ata: libahci: use ahci_nr_ports() helper Niklas Cassel
2026-04-24  2:48 ` Damien Le Moal
2026-04-27  8:13 ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox