Removed whitespace.
This commit is contained in:
parent
73f1d9e8f3
commit
bd56747e3e
|
|
@ -20,7 +20,7 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
# ---
|
# ---
|
||||||
#
|
#
|
||||||
# The license mentioned above concerns the source code only. Using the
|
# The license mentioned above concerns the source code only. Using the
|
||||||
# EtherCAT technology and brand is only permitted in compliance with the
|
# EtherCAT technology and brand is only permitted in compliance with the
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
|
|
|
||||||
|
|
@ -548,7 +548,7 @@ void el60xx_port_run(el60xx_port_t *port, u8 *pd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send data */
|
/* Send data */
|
||||||
|
|
||||||
tx_accepted_toggle = status & 0x0001;
|
tx_accepted_toggle = status & 0x0001;
|
||||||
if (tx_accepted_toggle != port->tx_accepted_toggle) { // ready
|
if (tx_accepted_toggle != port->tx_accepted_toggle) { // ready
|
||||||
port->tx_data_size =
|
port->tx_data_size =
|
||||||
|
|
|
||||||
10
tty/module.c
10
tty/module.c
|
|
@ -162,7 +162,7 @@ int __init ec_tty_init_module(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
out_put:
|
out_put:
|
||||||
put_tty_driver(tty_driver);
|
put_tty_driver(tty_driver);
|
||||||
out_return:
|
out_return:
|
||||||
|
|
@ -248,7 +248,7 @@ void ec_tty_clear(ec_tty_t *tty)
|
||||||
unsigned int ec_tty_tx_size(ec_tty_t *tty)
|
unsigned int ec_tty_tx_size(ec_tty_t *tty)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned int ret;
|
||||||
|
|
||||||
if (tty->tx_write_idx >= tty->tx_read_idx) {
|
if (tty->tx_write_idx >= tty->tx_read_idx) {
|
||||||
ret = tty->tx_write_idx - tty->tx_read_idx;
|
ret = tty->tx_write_idx - tty->tx_read_idx;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -270,7 +270,7 @@ unsigned int ec_tty_tx_space(ec_tty_t *tty)
|
||||||
unsigned int ec_tty_rx_size(ec_tty_t *tty)
|
unsigned int ec_tty_rx_size(ec_tty_t *tty)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned int ret;
|
||||||
|
|
||||||
if (tty->rx_write_idx >= tty->rx_read_idx) {
|
if (tty->rx_write_idx >= tty->rx_read_idx) {
|
||||||
ret = tty->rx_write_idx - tty->rx_read_idx;
|
ret = tty->rx_write_idx - tty->rx_read_idx;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -356,7 +356,7 @@ void ec_tty_wakeup(unsigned long data)
|
||||||
tty_flip_buffer_push(tty->tty);
|
tty_flip_buffer_push(tty->tty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tty->timer.expires += 1;
|
tty->timer.expires += 1;
|
||||||
add_timer(&tty->timer);
|
add_timer(&tty->timer);
|
||||||
}
|
}
|
||||||
|
|
@ -427,7 +427,7 @@ static int ec_tty_write(
|
||||||
{
|
{
|
||||||
ec_tty_t *t = (ec_tty_t *) tty->driver_data;
|
ec_tty_t *t = (ec_tty_t *) tty->driver_data;
|
||||||
unsigned int data_size, i;
|
unsigned int data_size, i;
|
||||||
|
|
||||||
#if EC_TTY_DEBUG >= 1
|
#if EC_TTY_DEBUG >= 1
|
||||||
printk(KERN_INFO PFX "%s(count=%i)\n", __func__, count);
|
printk(KERN_INFO PFX "%s(count=%i)\n", __func__, count);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue