Staging: cxt1e1: Fix no spaces at the start of a line in functions.c
This patch fixes the following checkpatch.pl warning in functions.c WARNING: please no spaces at the start of a line in Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
223eaa377d
commit
bc4d6dafa5
1 changed files with 154 additions and 160 deletions
|
@ -25,7 +25,7 @@
|
||||||
#include "pmcc4.h"
|
#include "pmcc4.h"
|
||||||
|
|
||||||
#if defined(CONFIG_SBE_HDLC_V7) || defined(CONFIG_SBE_WAN256T3_HDLC_V7) || \
|
#if defined(CONFIG_SBE_HDLC_V7) || defined(CONFIG_SBE_WAN256T3_HDLC_V7) || \
|
||||||
defined(CONFIG_SBE_HDLC_V7_MODULE) || defined(CONFIG_SBE_WAN256T3_HDLC_V7_MODULE)
|
defined(CONFIG_SBE_HDLC_V7_MODULE) || defined(CONFIG_SBE_WAN256T3_HDLC_V7_MODULE)
|
||||||
#define _v7_hdlc_ 1
|
#define _v7_hdlc_ 1
|
||||||
#else
|
#else
|
||||||
#define _v7_hdlc_ 0
|
#define _v7_hdlc_ 0
|
||||||
|
@ -109,8 +109,7 @@ watchdog_func (unsigned long arg)
|
||||||
{
|
{
|
||||||
struct watchdog *wd = (void *) arg;
|
struct watchdog *wd = (void *) arg;
|
||||||
|
|
||||||
if (drvr_state != SBE_DRVR_AVAILABLE)
|
if (drvr_state != SBE_DRVR_AVAILABLE) {
|
||||||
{
|
|
||||||
if (cxt1e1_log_level >= LOG_MONITOR)
|
if (cxt1e1_log_level >= LOG_MONITOR)
|
||||||
pr_warning("%s: drvr not available (%x)\n", __func__, drvr_state);
|
pr_warning("%s: drvr not available (%x)\n", __func__, drvr_state);
|
||||||
return;
|
return;
|
||||||
|
@ -140,18 +139,15 @@ OS_uwait (int usec, char *description)
|
||||||
{
|
{
|
||||||
int tmp;
|
int tmp;
|
||||||
|
|
||||||
if (usec >= 1000)
|
if (usec >= 1000) {
|
||||||
{
|
|
||||||
mdelay (usec / 1000);
|
mdelay (usec / 1000);
|
||||||
/* now delay residual */
|
/* now delay residual */
|
||||||
tmp = (usec / 1000) * 1000; /* round */
|
tmp = (usec / 1000) * 1000; /* round */
|
||||||
tmp = usec - tmp; /* residual */
|
tmp = usec - tmp; /* residual */
|
||||||
if (tmp)
|
if (tmp) { /* wait on residual */
|
||||||
{ /* wait on residual */
|
|
||||||
udelay (tmp);
|
udelay (tmp);
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
{
|
|
||||||
udelay (usec);
|
udelay (usec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -174,8 +170,7 @@ OS_uwait_dummy (void)
|
||||||
void
|
void
|
||||||
OS_sem_init (void *sem, int state)
|
OS_sem_init (void *sem, int state)
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state) {
|
||||||
{
|
|
||||||
case SEM_TAKEN:
|
case SEM_TAKEN:
|
||||||
sema_init((struct semaphore *) sem, 0);
|
sema_init((struct semaphore *) sem, 0);
|
||||||
break;
|
break;
|
||||||
|
@ -270,8 +265,7 @@ VMETRO_TRIGGER (ci_t *ci, int x)
|
||||||
|
|
||||||
comet = ci->port[0].cometbase; /* default to COMET # 0 */
|
comet = ci->port[0].cometbase; /* default to COMET # 0 */
|
||||||
|
|
||||||
switch (x)
|
switch (x) {
|
||||||
{
|
|
||||||
default:
|
default:
|
||||||
case 0:
|
case 0:
|
||||||
data = pci_read_32 ((u_int32_t *) &comet->__res24); /* 0x90 */
|
data = pci_read_32 ((u_int32_t *) &comet->__res24); /* 0x90 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue