Fix a few typos.
This commit is contained in:
parent
39ac045cff
commit
0cd5a232ea
@ -666,8 +666,8 @@ static int null_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
|
|||||||
|
|
||||||
done = ((apb->flags & AUDIO_APB_FINAL) != 0);
|
done = ((apb->flags & AUDIO_APB_FINAL) != 0);
|
||||||
|
|
||||||
/* The buffer belongs to to an upper level. Just forward the event to
|
/* The buffer belongs to an upper level. Just forward the event to the
|
||||||
* the next level up.
|
* next level up.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_AUDIO_MULTI_SESSION
|
#ifdef CONFIG_AUDIO_MULTI_SESSION
|
||||||
|
@ -1378,7 +1378,7 @@ errout:
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: smart_add_sector_to_cache
|
* Name: smart_add_sector_to_cache
|
||||||
*
|
*
|
||||||
* Description: Adds a logical to physical sector maaping to the sector
|
* Description: Adds a logical to physical sector mapping to the sector
|
||||||
* map cache. The cache is used to minimize RAM by eliminating
|
* map cache. The cache is used to minimize RAM by eliminating
|
||||||
* a one-to-one mapping of all logical sectors and only keeping
|
* a one-to-one mapping of all logical sectors and only keeping
|
||||||
* a fixed number of mappings per the
|
* a fixed number of mappings per the
|
||||||
@ -1740,8 +1740,8 @@ static void smart_find_wear_minmax(FAR struct smart_struct_s *dev)
|
|||||||
* Description: Sets the wear level of the specified block. The wear level
|
* Description: Sets the wear level of the specified block. The wear level
|
||||||
* is a 4-bit field packed 2 entries per byte and is mapped to
|
* is a 4-bit field packed 2 entries per byte and is mapped to
|
||||||
* a bit field which minimizes the number of 0 to 1 transitions
|
* a bit field which minimizes the number of 0 to 1 transitions
|
||||||
* such that entries can be updated on a NOR flash withough the
|
* such that entries can be updated on a NOR flash without the
|
||||||
* need to relocated the format sector (assuming CRC is not
|
* need to relocate the format sector (assuming CRC is not
|
||||||
* enabled, in which case a relocated is needed for ANY change).
|
* enabled, in which case a relocated is needed for ANY change).
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -4381,7 +4381,7 @@ static int smart_writesector(FAR struct smart_struct_s *dev,
|
|||||||
#endif /* CONFIG_MTD_SMART_ENABLE_CRC */
|
#endif /* CONFIG_MTD_SMART_ENABLE_CRC */
|
||||||
|
|
||||||
/* If we are not using CRC and on a device that supports re-writing
|
/* If we are not using CRC and on a device that supports re-writing
|
||||||
* bits from 1 to 0 without neededing a block erase, such as NOR
|
* bits from 1 to 0 without needing a block erase, such as NOR
|
||||||
* FLASH, then we can simply update the data in place and don't need
|
* FLASH, then we can simply update the data in place and don't need
|
||||||
* to relocate the sector. Test if we need to relocate or not.
|
* to relocate the sector. Test if we need to relocate or not.
|
||||||
*/
|
*/
|
||||||
@ -4550,7 +4550,7 @@ static int smart_writesector(FAR struct smart_struct_s *dev,
|
|||||||
offsetof(struct smart_sect_header_s, status);
|
offsetof(struct smart_sect_header_s, status);
|
||||||
ret = smart_bytewrite(dev, offset, 1, &byte);
|
ret = smart_bytewrite(dev, offset, 1, &byte);
|
||||||
|
|
||||||
/* Update releasecount for released sector and freecount for the
|
/* Update releasecount for the released sector and freecount for the
|
||||||
* newly allocated physical sector.
|
* newly allocated physical sector.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -4988,7 +4988,7 @@ static inline int smart_allocsector(FAR struct smart_struct_s *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Fill in the struct and add to the list. We are protected by the
|
/* Fill in the struct and add to the list. We are protected by the
|
||||||
* smartfs layer's mutex, so no locking required.
|
* smartfs layer's mutex, so no locking is required.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
allocsect->logical = logsector;
|
allocsect->logical = logsector;
|
||||||
|
@ -451,7 +451,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout)
|
|||||||
int errcode;
|
int errcode;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(fds != NULL);
|
DEBUGASSERT(nfds == 0 || fds != NULL);
|
||||||
|
|
||||||
/* poll() is a cancellation point */
|
/* poll() is a cancellation point */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user