diff options
author | norly <ny-git@enpas.org> | 2022-05-03 03:14:53 +0200 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2022-05-03 03:14:53 +0200 |
commit | d6610fa34973f10945add245d43234040fdf5745 (patch) | |
tree | f1fd875f6dc06fa12db9aa4250956955789b7273 /module | |
parent | 22b7d14dd4023cde7d806dd596868fd2cb902e7f (diff) |
Repack struct elmcan
Diffstat (limited to 'module')
-rw-r--r-- | module/elmcan.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/elmcan.c b/module/elmcan.c index c5723de..8a54240 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -92,18 +92,18 @@ struct elmcan { u8 rxbuf[ELM327_SIZE_RXBUF]; u8 txbuf[ELM327_SIZE_TXBUF] ____cacheline_aligned; - /* TTY buffer accounting */ - struct work_struct tx_work; /* Flushes TTY TX buffer */ - u8 *txhead; /* Next TX byte */ - unsigned txleft; /* Bytes left to TX */ - int rxfill; /* Bytes already RX'd in buffer */ + /* Per-channel lock */ + spinlock_t lock; /* TTY and netdev devices that we're bridging */ struct tty_struct *tty; struct net_device *dev; - /* Per-channel lock */ - spinlock_t lock; + /* TTY buffer accounting */ + struct work_struct tx_work; /* Flushes TTY TX buffer */ + u8 *txhead; /* Next TX byte */ + size_t txleft; /* Bytes left to TX */ + int rxfill; /* Bytes already RX'd in buffer */ /* State machine */ enum { |