X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fprotocol.h;h=de700cf00d18c248fa4abc1638e241906b6e0a75;hb=c442ffda0fc6fa9bc3c5397a21ef1d04f01a64a1;hp=94eeb67e0fe37bf6c81de08fb34dd8d9c21e9cb4;hpb=f3f19d1131025b68d29a11273b627c83d748e7ea;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/protocol.h b/src/hardware/motech-lps-30x/protocol.h index 94eeb67e..de700cf0 100644 --- a/src/hardware/motech-lps-30x/protocol.h +++ b/src/hardware/motech-lps-30x/protocol.h @@ -23,7 +23,6 @@ * @internal */ - #ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H #define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H @@ -32,9 +31,8 @@ #include "libsigrok.h" #include "libsigrok-internal.h" - -SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat); -SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...); +SR_PRIV int lps_process_status(struct sr_dev_inst *sdi, int stat); +SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char *fmt, ...); #define LOG_PREFIX "motech-lps-30x" @@ -63,7 +61,7 @@ struct channel_spec { /** Model properties specification */ struct lps_modelspec { lps_modelid modelid; - const char* modelstr; + const char *modelstr; uint8_t num_channels; struct channel_spec channels[3]; }; @@ -81,7 +79,7 @@ typedef enum { /** Status of a single channel. */ struct channel_status { /* Channel information (struct channel_info*). data (struct) owned by sdi, just a reference to address a single channel. */ - GSList* info; + GSList *info; /* Received from device. */ gdouble output_voltage_last; gdouble output_current_last; @@ -95,7 +93,7 @@ struct channel_status { /** Private, per-device-instance driver context. */ struct dev_context { /* Model-specific information */ - const struct lps_modelspec* model; + const struct lps_modelspec *model; /* Acquisition status */ gboolean acq_running; /**< Acquisition is running. */