mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Correct the code alignment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f987668068
commit
4c167b0729
@@ -842,7 +842,7 @@ static inline void efm32_chan_freeall(FAR struct efm32_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
efm32_chan_free(priv, chidx);
|
efm32_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1194,7 +1194,7 @@ static void sam_tsd_startuptime(struct sam_tsd_s *priv, uint32_t time)
|
|||||||
startup /= 10;
|
startup /= 10;
|
||||||
if (startup)
|
if (startup)
|
||||||
{
|
{
|
||||||
startup --;
|
startup--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1318,7 +1318,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time)
|
|||||||
tracktim /= 10;
|
tracktim /= 10;
|
||||||
if (tracktim)
|
if (tracktim)
|
||||||
{
|
{
|
||||||
tracktim --;
|
tracktim--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -763,7 +763,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
stm32_chan_free(priv, chidx);
|
stm32_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -768,7 +768,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
stm32_chan_free(priv, chidx);
|
stm32_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -757,7 +757,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
stm32_chan_free(priv, chidx);
|
stm32_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
stm32_chan_free(priv, chidx);
|
stm32_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -768,7 +768,7 @@ static inline void stm32l4_chan_freeall(FAR struct stm32l4_usbhost_s *priv)
|
|||||||
|
|
||||||
/* Free all host channels */
|
/* Free all host channels */
|
||||||
|
|
||||||
for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx ++)
|
for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx++)
|
||||||
{
|
{
|
||||||
stm32l4_chan_free(priv, chidx);
|
stm32l4_chan_free(priv, chidx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1398,7 +1398,9 @@ static unsigned int lis2dh_get_fifo_readings(FAR struct lis2dh_dev_s *priv,
|
|||||||
{
|
{
|
||||||
uint8_t raw[6];
|
uint8_t raw[6];
|
||||||
struct lis2dh_vector_s sample;
|
struct lis2dh_vector_s sample;
|
||||||
} *buf = (void *)&res->measurements[res->header.meas_count];
|
}
|
||||||
|
|
||||||
|
*buf = (void *)&res->measurements[res->header.meas_count];
|
||||||
|
|
||||||
bool xy_axis_fixup = priv->setup->xy_axis_fixup;
|
bool xy_axis_fixup = priv->setup->xy_axis_fixup;
|
||||||
size_t buflen = readcount * 6;
|
size_t buflen = readcount * 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user