ffs: rename find_[first|last]_set to find_[lsb|msb]_set

The new names reflect better what the functions do: they find the first
bit set starting from the least or most significant bit, i.e. they find
the least or most significant bit set, in a 32-bit word.

Change-Id: I6f0ee4b543f6f37c2f08f7067e14e039c92a6f6a
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-08-14 17:16:16 -04:00 committed by Anas Nashif
commit 1bab46dca1
7 changed files with 62 additions and 62 deletions

View file

@ -257,7 +257,7 @@ static inline int pci_bar_params_get(union pci_addr_reg pci_ctrl_addr,
addr = bar_config & mask;
if (addr != 0) {
/* calculate the size of the BAR memory required */
dev_info->size = 1 << (find_first_set(addr) - 1);
dev_info->size = 1 << (find_lsb_set(addr) - 1);
}
return 0;