diff options
| author | TanZheng <tanzheng@kylinos.cn> | 2026-05-28 14:00:50 +0800 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-06-01 19:07:37 +0200 |
| commit | f80cea847028bb9eb1149badebf9f142d96b2e8b (patch) | |
| tree | 914241c449eef6404276b47a894f5bc4af941b96 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | aa0ae1c35f7b3e9afed2324bed5f5c87ad55b92c (diff) | |
ata: ahci: use hweight_long() to count port_map bits
Replace the open loop used to calculate the number of set bits
in the port mapping with the `hweight_long()` function, which
simplifies the code without altering its functionality.
Signed-off-by: TanZheng <tanzheng@kylinos.cn>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
