[DeviceDrivers][MMC] rename fls to __rt_fls
This commit is contained in:
parent
7f1db36f39
commit
ba2b1f0e56
|
@ -185,7 +185,7 @@ struct rt_mmcsd_req {
|
||||||
* Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
|
* Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rt_inline rt_uint32_t fls(rt_uint32_t val)
|
rt_inline rt_uint32_t __rt_fls(rt_uint32_t val)
|
||||||
{
|
{
|
||||||
rt_uint32_t bit = 32;
|
rt_uint32_t bit = 32;
|
||||||
|
|
||||||
|
|
|
@ -548,7 +548,7 @@ rt_uint32_t mmcsd_select_voltage(struct rt_mmcsd_host *host, rt_uint32_t ocr)
|
||||||
|
|
||||||
static void mmcsd_power_up(struct rt_mmcsd_host *host)
|
static void mmcsd_power_up(struct rt_mmcsd_host *host)
|
||||||
{
|
{
|
||||||
int bit = fls(host->valid_ocr) - 1;
|
int bit = __rt_fls(host->valid_ocr) - 1;
|
||||||
|
|
||||||
host->io_cfg.vdd = bit;
|
host->io_cfg.vdd = bit;
|
||||||
if (controller_is_spi(host))
|
if (controller_is_spi(host))
|
||||||
|
|
Loading…
Reference in New Issue