]> sigrok.org Git - libsigrok.git/commitdiff
korad-kaxxxxp: eliminate excessive whitespace in continued signatures
authorGerhard Sittig <redacted>
Sat, 25 Feb 2023 15:39:26 +0000 (16:39 +0100)
committerGerhard Sittig <redacted>
Sun, 26 Feb 2023 06:45:11 +0000 (07:45 +0100)
Continuation lines in routine signatures should be indented by one TAB
(which is sufficient) or two (which is luxury). Four TABs is excessive,
and does not improve readability. Eliminate the excess whitespace.

src/hardware/korad-kaxxxxp/protocol.c
src/hardware/korad-kaxxxxp/protocol.h

index ce6032c84af086cca715cb768bbb2120498fdba1..2b980352f38f5e4f411f5278d107a757c6cca96b 100644 (file)
@@ -24,7 +24,7 @@
 #define DEVICE_PROCESSING_TIME_MS 80
 
 SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial,
-                               const char *cmd)
+       const char *cmd)
 {
        int ret;
 
@@ -168,7 +168,7 @@ static void give_device_time_to_process(struct dev_context *devc)
 }
 
 SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
-                               int target, struct dev_context *devc)
+       int target, struct dev_context *devc)
 {
        char msg[20];
        int ret;
@@ -252,7 +252,7 @@ SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
 }
 
 SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
-                               int target, struct dev_context *devc)
+       int target, struct dev_context *devc)
 {
        int ret, count;
        char reply[6];
@@ -377,7 +377,7 @@ SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
 }
 
 SR_PRIV int korad_kaxxxxp_get_all_values(struct sr_serial_dev_inst *serial,
-                               struct dev_context *devc)
+       struct dev_context *devc)
 {
        int ret, target;
 
index 9dcc19cacdfd192c19a8f7aac4442a428df0c5cb..0c7ba535406961cb9461febe0d723187fa8c3d10 100644 (file)
@@ -102,15 +102,15 @@ struct dev_context {
 };
 
 SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial,
-                                       const char *cmd);
+               const char *cmd);
 SR_PRIV int korad_kaxxxxp_read_chars(struct sr_serial_dev_inst *serial,
-                                       size_t count, char *buf);
+               size_t count, char *buf);
 SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
-                                       int target, struct dev_context *devc);
+               int target, struct dev_context *devc);
 SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
-                                       int target, struct dev_context *devc);
+               int target, struct dev_context *devc);
 SR_PRIV int korad_kaxxxxp_get_all_values(struct sr_serial_dev_inst *serial,
-                                       struct dev_context *devc);
+               struct dev_context *devc);
 SR_PRIV int korad_kaxxxxp_receive_data(int fd, int revents, void *cb_data);
 
 #endif