projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22b7d14
)
Repack struct elmcan
author
norly
<ny-git@enpas.org>
Tue, 3 May 2022 01:14:53 +0000
(
03:14
+0200)
committer
norly
<ny-git@enpas.org>
Tue, 3 May 2022 01:14:53 +0000
(
03:14
+0200)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index c5723dedb92ac6cf28f1ae9bfccc23c02fe09a36..8a542406c8db0160fa2e1a26eb785c89c3e8c82c 100644
(file)
--- 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;
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;
/* 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 {
/* State machine */
enum {