diff options
| author | Niklas Cassel <cassel@kernel.org> | 2026-04-23 18:43:30 +0200 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-06-01 19:07:37 +0200 |
| commit | 3f8e2146d0c4ea5abc8532ae74b053faf9e77bc8 (patch) | |
| tree | 2705368d5cefe673928e9cdc39d8ff2b3fb6980f | |
| parent | e7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff) | |
| download | linux-next-3f8e2146d0c4ea5abc8532ae74b053faf9e77bc8.tar.gz linux-next-3f8e2146d0c4ea5abc8532ae74b053faf9e77bc8.zip | |
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>
| -rw-r--r-- | drivers/ata/libahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
