Skip to content

Commit 81609a7

Browse files
committed
korad-kaxxxxp: eliminate excessive whitespace in continued signatures
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.
1 parent ebe0517 commit 81609a7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/hardware/korad-kaxxxxp/protocol.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define DEVICE_PROCESSING_TIME_MS 80
2525

2626
SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial,
27-
const char *cmd)
27+
const char *cmd)
2828
{
2929
int ret;
3030

@@ -168,7 +168,7 @@ static void give_device_time_to_process(struct dev_context *devc)
168168
}
169169

170170
SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
171-
int target, struct dev_context *devc)
171+
int target, struct dev_context *devc)
172172
{
173173
char msg[20];
174174
int ret;
@@ -252,7 +252,7 @@ SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
252252
}
253253

254254
SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
255-
int target, struct dev_context *devc)
255+
int target, struct dev_context *devc)
256256
{
257257
int ret, count;
258258
char reply[6];
@@ -377,7 +377,7 @@ SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
377377
}
378378

379379
SR_PRIV int korad_kaxxxxp_get_all_values(struct sr_serial_dev_inst *serial,
380-
struct dev_context *devc)
380+
struct dev_context *devc)
381381
{
382382
int ret, target;
383383

src/hardware/korad-kaxxxxp/protocol.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ struct dev_context {
102102
};
103103

104104
SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial,
105-
const char *cmd);
105+
const char *cmd);
106106
SR_PRIV int korad_kaxxxxp_read_chars(struct sr_serial_dev_inst *serial,
107-
size_t count, char *buf);
107+
size_t count, char *buf);
108108
SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial,
109-
int target, struct dev_context *devc);
109+
int target, struct dev_context *devc);
110110
SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,
111-
int target, struct dev_context *devc);
111+
int target, struct dev_context *devc);
112112
SR_PRIV int korad_kaxxxxp_get_all_values(struct sr_serial_dev_inst *serial,
113-
struct dev_context *devc);
113+
struct dev_context *devc);
114114
SR_PRIV int korad_kaxxxxp_receive_data(int fd, int revents, void *cb_data);
115115

116116
#endif

0 commit comments

Comments
 (0)