summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2022-03-16 21:32:20 +0100
committernorly <ny-git@enpas.org>2022-03-16 21:32:20 +0100
commitaf305c7448da594fed5d6fc26490d4b87774098b (patch)
treefcc121dfec249729be3ad4c6e63af91b6c5ef148
parentb81986ae35699dce8b54cba956af2dcd91241eb8 (diff)
Unify indentation in struct elmcan
-rw-r--r--module/elmcan.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/elmcan.c b/module/elmcan.c
index 31aa8fc..106ae10 100644
--- a/module/elmcan.c
+++ b/module/elmcan.c
@@ -89,11 +89,11 @@ struct elmcan {
struct can_rx_offload offload;
/* TTY and netdev devices that we're bridging */
- struct tty_struct *tty;
- struct net_device *dev;
+ struct tty_struct *tty;
+ struct net_device *dev;
/* Per-channel lock */
- spinlock_t lock;
+ spinlock_t lock;
/* Keep track of how many things are using this struct.
* Once it reaches 0, we are in the process of cleaning up,
@@ -102,18 +102,18 @@ struct elmcan {
* decrement to 0, and refcount_dec() spills a WARN_ONCE in
* that case.
*/
- atomic_t refcount;
+ atomic_t refcount;
/* Stop the channel on hardware failure.
* Once this is true, nothing will be sent to the TTY.
*/
- bool hw_failure;
+ bool hw_failure;
/* TTY TX helpers */
- struct work_struct tx_work; /* Flushes TTY TX buffer */
- unsigned char *txbuf;
- unsigned char *txhead; /* Pointer to next TX byte */
- int txleft; /* Bytes left to TX */
+ struct work_struct tx_work; /* Flushes TTY TX buffer */
+ unsigned char *txbuf;
+ unsigned char *txhead; /* Pointer to next TX byte */
+ int txleft; /* Bytes left to TX */
/* TTY RX helpers */
unsigned char rxbuf[ELM327_SIZE_RXBUF];