Make sure that there is one space after for

This commit is contained in:
Gregory Nutt
2014-04-12 13:28:22 -06:00
parent 056aed1274
commit 494387b33b
42 changed files with 175 additions and 203 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ pid_t up_vfork(const struct vfork_s *context)
/* Make some feeble effort to perserve the stack contents. This is /* Make some feeble effort to perserve the stack contents. This is
* feeble because the stack surely contains invalid pointers and other * feeble because the stack surely contains invalid pointers and other
* content that will not work in the child context. However, if the * content that will not work in the child context. However, if the
* user follows all of the caveats of vfor() usage, even this feeble * user follows all of the caveats of vfork() usage, even this feeble
* effort is overkill. * effort is overkill.
*/ */
+1 -1
View File
@@ -190,7 +190,7 @@ pid_t up_vfork(const struct vfork_s *context)
/* Make some feeble effort to perserve the stack contents. This is /* Make some feeble effort to perserve the stack contents. This is
* feeble because the stack surely contains invalid pointers and other * feeble because the stack surely contains invalid pointers and other
* content that will not work in the child context. However, if the * content that will not work in the child context. However, if the
* user follows all of the caveats of vfor() usage, even this feeble * user follows all of the caveats of vfork() usage, even this feeble
* effort is overkill. * effort is overkill.
*/ */
-28
View File
@@ -190,14 +190,12 @@ struct vsn_sif_s {
sem_t exclusive_access; sem_t exclusive_access;
}; };
/**************************************************************************** /****************************************************************************
* Private data * Private data
****************************************************************************/ ****************************************************************************/
struct vsn_sif_s vsn_sif; struct vsn_sif_s vsn_sif;
/**************************************************************************** /****************************************************************************
* Semaphores * Semaphores
****************************************************************************/ ****************************************************************************/
@@ -210,18 +208,15 @@ void sif_sem_wait(void)
} }
} }
void inline sif_sem_post(void) void inline sif_sem_post(void)
{ {
sem_post(&vsn_sif.exclusive_access); sem_post(&vsn_sif.exclusive_access);
} }
/**************************************************************************** /****************************************************************************
* GPIOs and Alternative Functions * GPIOs and Alternative Functions
****************************************************************************/ ****************************************************************************/
void sif_gpios_reset(void) void sif_gpios_reset(void)
{ {
vsn_sif.gpio[0] = vsn_sif.gpio[1] = VSN_SIF_GPIO_HIGHZ; vsn_sif.gpio[0] = vsn_sif.gpio[1] = VSN_SIF_GPIO_HIGHZ;
@@ -230,7 +225,6 @@ void sif_gpios_reset(void)
stm32_configgpio(GPIO_GP2_HIZ); stm32_configgpio(GPIO_GP2_HIZ);
} }
void sif_gpio1_update(void) void sif_gpio1_update(void)
{ {
uint32_t val; uint32_t val;
@@ -251,7 +245,6 @@ void sif_gpio1_update(void)
else vsn_sif.gpio[0] &= ~VSN_SIF_GPIO_READ_MASK; else vsn_sif.gpio[0] &= ~VSN_SIF_GPIO_READ_MASK;
} }
void sif_gpio2_update(void) void sif_gpio2_update(void)
{ {
uint32_t val; uint32_t val;
@@ -272,7 +265,6 @@ void sif_gpio2_update(void)
else vsn_sif.gpio[1] &= ~VSN_SIF_GPIO_READ_MASK; else vsn_sif.gpio[1] &= ~VSN_SIF_GPIO_READ_MASK;
} }
int sif_gpios_lock(vsn_sif_state_t peripheral) int sif_gpios_lock(vsn_sif_state_t peripheral)
{ {
return ERROR; return ERROR;
@@ -284,16 +276,12 @@ int sif_gpios_unlock(vsn_sif_state_t peripheral)
return ERROR; return ERROR;
} }
/**************************************************************************** /****************************************************************************
* Analog Outputs * Analog Outputs
****************************************************************************/ ****************************************************************************/
static volatile int test = 0, teirq; static volatile int test = 0, teirq;
static int sif_anout_isr(int irq, void *context) static int sif_anout_isr(int irq, void *context)
{ {
STM32_TIM_ACKINT(vsn_sif.tim8, 0); STM32_TIM_ACKINT(vsn_sif.tim8, 0);
@@ -304,7 +292,6 @@ static int sif_anout_isr(int irq, void *context)
return OK; return OK;
} }
int sif_anout_init(void) int sif_anout_init(void)
{ {
vsn_sif.tim3 = stm32_tim_init(3); vsn_sif.tim3 = stm32_tim_init(3);
@@ -346,23 +333,19 @@ void sif_anout_update(void)
{ {
} }
void sif_anout_callback(void) void sif_anout_callback(void)
{ {
// called at rate of PWM interrupt // called at rate of PWM interrupt
} }
/**************************************************************************** /****************************************************************************
* Analog Input Reference Tap * Analog Input Reference Tap
****************************************************************************/ ****************************************************************************/
void sif_anref_init(void) void sif_anref_init(void)
{ {
} }
/**************************************************************************** /****************************************************************************
* Analog Input Sampler Unit * Analog Input Sampler Unit
****************************************************************************/ ****************************************************************************/
@@ -434,13 +417,11 @@ int sif_anin_setgain(int gain)
} }
#endif #endif
int sif_anin_reset(void) int sif_anin_reset(void)
{ {
return OK; return OK;
} }
/**************************************************************************** /****************************************************************************
* Device driver functions * Device driver functions
****************************************************************************/ ****************************************************************************/
@@ -456,7 +437,6 @@ int devsif_open(FAR struct file *filep)
return 0; return 0;
} }
int devsif_close(FAR struct file *filep) int devsif_close(FAR struct file *filep)
{ {
sif_sem_wait(); sif_sem_wait();
@@ -475,7 +455,6 @@ int devsif_close(FAR struct file *filep)
return 0; return 0;
} }
static ssize_t devsif_read(FAR struct file *filep, FAR char *buffer, size_t len) static ssize_t devsif_read(FAR struct file *filep, FAR char *buffer, size_t len)
{ {
sif_sem_wait(); sif_sem_wait();
@@ -484,7 +463,6 @@ static ssize_t devsif_read(FAR struct file *filep, FAR char *buffer, size_t len)
return len; return len;
} }
static ssize_t devsif_write(FAR struct file *filep, FAR const char *buffer, size_t len) static ssize_t devsif_write(FAR struct file *filep, FAR const char *buffer, size_t len)
{ {
sif_sem_wait(); sif_sem_wait();
@@ -493,7 +471,6 @@ static ssize_t devsif_write(FAR struct file *filep, FAR const char *buffer, size
return len; return len;
} }
#ifndef CONFIG_DISABLE_POLL #ifndef CONFIG_DISABLE_POLL
static int devsif_poll(FAR struct file *filep, FAR struct pollfd *fds, static int devsif_poll(FAR struct file *filep, FAR struct pollfd *fds,
bool setup) bool setup)
@@ -509,7 +486,6 @@ static int devsif_poll(FAR struct file *filep, FAR struct pollfd *fds,
} }
#endif #endif
int devsif_ioctl(FAR struct file *filep, int cmd, unsigned long arg) int devsif_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{ {
sif_sem_wait(); sif_sem_wait();
@@ -517,12 +493,10 @@ int devsif_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
return 0; return 0;
} }
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
static const struct file_operations devsif_fops = { static const struct file_operations devsif_fops = {
devsif_open, /* open */ devsif_open, /* open */
devsif_close, /* close */ devsif_close, /* close */
@@ -535,7 +509,6 @@ static const struct file_operations devsif_fops = {
#endif #endif
}; };
/** Bring up the Sensor Interface by initializing all of the desired /** Bring up the Sensor Interface by initializing all of the desired
* hardware components. * hardware components.
**/ **/
@@ -560,7 +533,6 @@ int sif_init(void)
return OK; return OK;
} }
/** SIF Utility /** SIF Utility
* *
* Provides direct access to the sensor connector, readings, and diagnostic. * Provides direct access to the sensor connector, readings, and diagnostic.