ata: libahci: use ahci_nr_ports() helper

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

No functional change.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
This commit is contained in:
Niklas Cassel 2026-04-23 18:43:30 +02:00
parent e7ae89a0c9
commit 3f8e2146d0

View File

@ -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,