]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/motech-lps-30x/protocol.h
Various minor cosmetics and consistency fixes.
[libsigrok.git] / src / hardware / motech-lps-30x / protocol.h
index 76f646d8b2c318581b0e1ff4268d9828915ba72c..de700cf00d18c248fa4abc1638e241906b6e0a75 100644 (file)
@@ -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 charmodelstr;
+       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. */
-       GSListinfo;
+       GSList *info;
        /* Received from device. */
        gdouble output_voltage_last;
        gdouble output_current_last;
@@ -95,10 +93,10 @@ struct channel_status {
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Model-specific information */
-       struct lps_modelspec* model;
+       const struct lps_modelspec *model;
 
        /* Acquisition status */
-       gboolean acq_running;           /**< Aquisition is running. */
+       gboolean acq_running;           /**< Acquisition is running. */
        uint64_t limit_samples;         /**< Target number of samples */
        uint64_t limit_msec;            /**< Target sampling time */
        acquisition_req acq_req;        /**< Current request. */