summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2022-03-16 22:29:58 +0100
committernorly <ny-git@enpas.org>2022-03-16 22:29:58 +0100
commit858a6a0ffa6af2bfa6c567f796f6f0565e777cef (patch)
treeb6ba42be938451ce8e17b2470a66b058edeae53d /module
parent489643c2ad25482d526687138d6ada04bd3dbe2a (diff)
Clean up types and unused vars in struct elmcan
Diffstat (limited to 'module')
-rw-r--r--module/elmcan.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/elmcan.c b/module/elmcan.c
index ed652de..dd8889b 100644
--- a/module/elmcan.c
+++ b/module/elmcan.c
@@ -127,16 +127,14 @@ struct elmcan {
ELM327_STATE_RECEIVING,
} state;
- int drop_next_line;
+ bool drop_next_line;
/* The CAN frame and config the ELM327 is sending/using,
* or will send/use after finishing all cmds_todo
*/
struct can_frame can_frame_to_send;
- unsigned short can_config;
- unsigned long can_bitrate;
- unsigned char can_bitrate_divisor;
- int silent_monitoring;
+ u16 can_config;
+ u8 can_bitrate_divisor;
/* Things we have yet to send */
char **next_init_cmd;