mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
mxs: Convert timeout parameter to 'unsigned int'
For representing a timeout value, it makes more sense to pass it as 'unsigned int'. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
497dc79658
commit
a123312f4d
2 changed files with 6 additions and 4 deletions
|
@ -81,7 +81,8 @@ void enable_caches(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
||||
int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, unsigned
|
||||
int timeout)
|
||||
{
|
||||
while (--timeout) {
|
||||
if ((readl(®->reg) & mask) == mask)
|
||||
|
@ -92,7 +93,8 @@ int mxs_wait_mask_set(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
|||
return !timeout;
|
||||
}
|
||||
|
||||
int mxs_wait_mask_clr(struct mxs_register_32 *reg, uint32_t mask, int timeout)
|
||||
int mxs_wait_mask_clr(struct mxs_register_32 *reg, uint32_t mask, unsigned
|
||||
int timeout)
|
||||
{
|
||||
while (--timeout) {
|
||||
if ((readl(®->reg) & mask) == 0)
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
int mxs_reset_block(struct mxs_register_32 *reg);
|
||||
int mxs_wait_mask_set(struct mxs_register_32 *reg,
|
||||
uint32_t mask,
|
||||
int timeout);
|
||||
unsigned int timeout);
|
||||
int mxs_wait_mask_clr(struct mxs_register_32 *reg,
|
||||
uint32_t mask,
|
||||
int timeout);
|
||||
unsigned int timeout);
|
||||
|
||||
int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int));
|
||||
|
||||
|
|
Loading…
Reference in a new issue