From: Gerhard Sittig Date: Sun, 5 Mar 2023 10:16:58 +0000 (+0100) Subject: binary helpers: address minor style nits, break long text lines X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=01671e567e50a716b5368d68055fc63684ec9fbf;p=libsigrok.git binary helpers: address minor style nits, break long text lines Break long text lines in source code files, and break them in more appropriate locations (keep groups of related function parameters). --- diff --git a/src/binary_helpers.c b/src/binary_helpers.c index 86c4c583..a15f5cfb 100644 --- a/src/binary_helpers.c +++ b/src/binary_helpers.c @@ -22,7 +22,8 @@ #include #include "libsigrok-internal.h" -SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, const void *data, size_t length) +SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, + const void *data, size_t length) { float value; @@ -59,8 +60,9 @@ SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, const return SR_OK; } -SR_PRIV int bv_send_analog_channel(const struct sr_dev_inst *sdi, struct sr_channel *ch, - const struct binary_analog_channel *bac, const void *data, size_t length) +SR_PRIV int bv_send_analog_channel(const struct sr_dev_inst *sdi, + struct sr_channel *ch, const struct binary_analog_channel *bac, + const void *data, size_t length) { int err; struct sr_analog_encoding encoding; diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index e1cae559..20bdf98c 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -2194,7 +2194,8 @@ struct binary_analog_channel { * @param length Size of binary blob * @return SR_OK on success, SR_ERR_* error code on failure. */ -SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, const void *data, size_t length); +SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, + const void *data, size_t length); /** * Send an analog channel packet based on a binary analog channel @@ -2207,8 +2208,9 @@ SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, const * @param length Size of binary blob * @return SR_OK on success, SR_ERR_* error code on failure. */ -SR_PRIV int bv_send_analog_channel(const struct sr_dev_inst *sdi, struct sr_channel *ch, - const struct binary_analog_channel *spec, const void *data, size_t length); +SR_PRIV int bv_send_analog_channel(const struct sr_dev_inst *sdi, + struct sr_channel *ch, const struct binary_analog_channel *spec, + const void *data, size_t length); /*--- crc.c -----------------------------------------------------------------*/