提交 adcb56f9 编写于 作者: R Rehas Sachdeva 提交者: Greg Kroah-Hartman

staging: dgnc: Add spaces around '|' and '<<'

One space on either side of binary and ternary operators is preferred.
This patch fixes the related checkpatch.pl warnings.
Signed-off-by: NRehas Sachdeva <aquannie@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0b7ceaa6
...@@ -2520,12 +2520,12 @@ static void dgnc_tty_flush_buffer(struct tty_struct *tty) ...@@ -2520,12 +2520,12 @@ static void dgnc_tty_flush_buffer(struct tty_struct *tty)
/* Flush UARTs transmit FIFO */ /* Flush UARTs transmit FIFO */
ch->ch_bd->bd_ops->flush_uart_write(ch); ch->ch_bd->bd_ops->flush_uart_write(ch);
if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) { if (ch->ch_tun.un_flags & (UN_LOW | UN_EMPTY)) {
ch->ch_tun.un_flags &= ~(UN_LOW|UN_EMPTY); ch->ch_tun.un_flags &= ~(UN_LOW | UN_EMPTY);
wake_up_interruptible(&ch->ch_tun.un_flags_wait); wake_up_interruptible(&ch->ch_tun.un_flags_wait);
} }
if (ch->ch_pun.un_flags & (UN_LOW|UN_EMPTY)) { if (ch->ch_pun.un_flags & (UN_LOW | UN_EMPTY)) {
ch->ch_pun.un_flags &= ~(UN_LOW|UN_EMPTY); ch->ch_pun.un_flags &= ~(UN_LOW | UN_EMPTY);
wake_up_interruptible(&ch->ch_pun.un_flags_wait); wake_up_interruptible(&ch->ch_pun.un_flags_wait);
} }
...@@ -2719,13 +2719,13 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd, ...@@ -2719,13 +2719,13 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) { if (ch->ch_tun.un_flags & (UN_LOW|UN_EMPTY)) {
ch->ch_tun.un_flags &= ch->ch_tun.un_flags &=
~(UN_LOW|UN_EMPTY); ~(UN_LOW | UN_EMPTY);
wake_up_interruptible(&ch->ch_tun.un_flags_wait); wake_up_interruptible(&ch->ch_tun.un_flags_wait);
} }
if (ch->ch_pun.un_flags & (UN_LOW|UN_EMPTY)) { if (ch->ch_pun.un_flags & (UN_LOW|UN_EMPTY)) {
ch->ch_pun.un_flags &= ch->ch_pun.un_flags &=
~(UN_LOW|UN_EMPTY); ~(UN_LOW | UN_EMPTY);
wake_up_interruptible(&ch->ch_pun.un_flags_wait); wake_up_interruptible(&ch->ch_pun.un_flags_wait);
} }
} }
......
...@@ -31,21 +31,21 @@ ...@@ -31,21 +31,21 @@
#endif #endif
#if !defined(TIOCMSET) #if !defined(TIOCMSET)
#define TIOCMSET (('d'<<8) | 252) /* set modem ctrl state */ #define TIOCMSET (('d' << 8) | 252) /* set modem ctrl state */
#define TIOCMGET (('d'<<8) | 253) /* set modem ctrl state */ #define TIOCMGET (('d' << 8) | 253) /* set modem ctrl state */
#endif #endif
#if !defined(TIOCMBIC) #if !defined(TIOCMBIC)
#define TIOCMBIC (('d'<<8) | 254) /* set modem ctrl state */ #define TIOCMBIC (('d' << 8) | 254) /* set modem ctrl state */
#define TIOCMBIS (('d'<<8) | 255) /* set modem ctrl state */ #define TIOCMBIS (('d' << 8) | 255) /* set modem ctrl state */
#endif #endif
#define DIGI_GETA (('e'<<8) | 94) /* Read params */ #define DIGI_GETA (('e' << 8) | 94) /* Read params */
#define DIGI_SETA (('e'<<8) | 95) /* Set params */ #define DIGI_SETA (('e' << 8) | 95) /* Set params */
#define DIGI_SETAW (('e'<<8) | 96) /* Drain & set params */ #define DIGI_SETAW (('e' << 8) | 96) /* Drain & set params */
#define DIGI_SETAF (('e'<<8) | 97) /* Drain, flush & set params */ #define DIGI_SETAF (('e' << 8) | 97) /* Drain, flush & set params */
#define DIGI_GET_NI_INFO (('d'<<8) | 250) /* Non-intelligent state info */ #define DIGI_GET_NI_INFO (('d' << 8) | 250) /* Non-intelligent state info */
#define DIGI_LOOPBACK (('d'<<8) | 252) /* #define DIGI_LOOPBACK (('d' << 8) | 252) /*
* Enable/disable UART * Enable/disable UART
* internal loopback * internal loopback
*/ */
...@@ -85,7 +85,7 @@ struct digi_dinfo { ...@@ -85,7 +85,7 @@ struct digi_dinfo {
char dinfo_version[16]; /* driver version */ char dinfo_version[16]; /* driver version */
}; };
#define DIGI_GETDD (('d'<<8) | 248) /* get driver info */ #define DIGI_GETDD (('d' << 8) | 248) /* get driver info */
/************************************************************************ /************************************************************************
* Structure used with ioctl commands for per-board information * Structure used with ioctl commands for per-board information
...@@ -105,7 +105,7 @@ struct digi_info { ...@@ -105,7 +105,7 @@ struct digi_info {
char info_reserved[7]; /* for future expansion */ char info_reserved[7]; /* for future expansion */
}; };
#define DIGI_GETBD (('d'<<8) | 249) /* get board info */ #define DIGI_GETBD (('d' << 8) | 249) /* get board info */
struct digi_getbuffer /* Struct for holding buffer use counts */ struct digi_getbuffer /* Struct for holding buffer use counts */
{ {
...@@ -133,10 +133,10 @@ struct digi_getcounter { ...@@ -133,10 +133,10 @@ struct digi_getcounter {
#define DIGI_SETCUSTOMBAUD _IOW('e', 106, int) /* Set integer baud rate */ #define DIGI_SETCUSTOMBAUD _IOW('e', 106, int) /* Set integer baud rate */
#define DIGI_GETCUSTOMBAUD _IOR('e', 107, int) /* Get integer baud rate */ #define DIGI_GETCUSTOMBAUD _IOR('e', 107, int) /* Get integer baud rate */
#define DIGI_REALPORT_GETBUFFERS (('e'<<8) | 108) #define DIGI_REALPORT_GETBUFFERS (('e' << 8) | 108)
#define DIGI_REALPORT_SENDIMMEDIATE (('e'<<8) | 109) #define DIGI_REALPORT_SENDIMMEDIATE (('e' << 8) | 109)
#define DIGI_REALPORT_GETCOUNTERS (('e'<<8) | 110) #define DIGI_REALPORT_GETCOUNTERS (('e' << 8) | 110)
#define DIGI_REALPORT_GETEVENTS (('e'<<8) | 111) #define DIGI_REALPORT_GETEVENTS (('e' << 8) | 111)
#define EV_OPU 0x0001 /* !<Output paused by client */ #define EV_OPU 0x0001 /* !<Output paused by client */
#define EV_OPS 0x0002 /* !<Output paused by reqular sw flowctrl */ #define EV_OPS 0x0002 /* !<Output paused by reqular sw flowctrl */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册