Skip to content

Commit ba2b1f0

Browse files
committed
[DeviceDrivers][MMC] rename fls to __rt_fls
1 parent 7f1db36 commit ba2b1f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/drivers/include/drivers/mmcsd_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct rt_mmcsd_req {
185185
* Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
186186
*/
187187

188-
rt_inline rt_uint32_t fls(rt_uint32_t val)
188+
rt_inline rt_uint32_t __rt_fls(rt_uint32_t val)
189189
{
190190
rt_uint32_t bit = 32;
191191

components/drivers/sdio/mmcsd_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ rt_uint32_t mmcsd_select_voltage(struct rt_mmcsd_host *host, rt_uint32_t ocr)
548548

549549
static void mmcsd_power_up(struct rt_mmcsd_host *host)
550550
{
551-
int bit = fls(host->valid_ocr) - 1;
551+
int bit = __rt_fls(host->valid_ocr) - 1;
552552

553553
host->io_cfg.vdd = bit;
554554
if (controller_is_spi(host))

0 commit comments

Comments
 (0)