Various cosmetics, whitespace, consistency fixes.
This commit is contained in:
parent
1663ebe27f
commit
ce4d26ddf9
|
@ -17,9 +17,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LIBSIGROK_AGILENT_DMM_H
|
||||
#define LIBSIGROK_AGILENT_DMM_H
|
||||
#ifndef LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H
|
||||
#define LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H
|
||||
|
||||
/* Message logging helpers with subsystem-specific prefix string. */
|
||||
#define LOG_PREFIX "agilent-dmm: "
|
||||
|
@ -85,4 +84,4 @@ struct agdmm_recv {
|
|||
|
||||
SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data);
|
||||
|
||||
#endif /* LIBSIGROK_AGILENT_DMM_H */
|
||||
#endif
|
||||
|
|
|
@ -144,7 +144,7 @@ static int agdmm_send(const struct sr_dev_inst *sdi, const char *cmd)
|
|||
sr_err("Failed to send: %s.", strerror(errno));
|
||||
return SR_ERR;
|
||||
}
|
||||
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ static int bin2bitbang(const char *filename,
|
|||
static void clear_helper(void *priv)
|
||||
{
|
||||
struct dev_context *devc;
|
||||
|
||||
|
||||
devc = priv;
|
||||
|
||||
ftdi_deinit(&devc->ftdic);
|
||||
|
|
|
@ -144,11 +144,7 @@ static GSList *scan(GSList *options)
|
|||
|
||||
static GSList *dev_list(void)
|
||||
{
|
||||
struct drv_context *drvc;
|
||||
|
||||
drvc = di->priv;
|
||||
|
||||
return drvc->instances;
|
||||
return ((struct drv_context *)(di->priv))->instances;
|
||||
}
|
||||
|
||||
static int dev_clear(void)
|
||||
|
|
|
@ -544,7 +544,6 @@ SR_PRIV int cem_dt_885x_weight_freq_get(const struct sr_dev_inst *sdi)
|
|||
return SR_MQFLAG_SPL_FREQ_WEIGHT_C;
|
||||
} else
|
||||
return cur_setting;
|
||||
|
||||
}
|
||||
|
||||
SR_PRIV int cem_dt_885x_weight_freq_set(const struct sr_dev_inst *sdi, int freqw)
|
||||
|
@ -607,7 +606,6 @@ SR_PRIV int cem_dt_885x_weight_time_get(const struct sr_dev_inst *sdi)
|
|||
return SR_MQFLAG_SPL_TIME_WEIGHT_S;
|
||||
} else
|
||||
return cur_setting;
|
||||
|
||||
}
|
||||
|
||||
SR_PRIV int cem_dt_885x_weight_time_set(const struct sr_dev_inst *sdi, int timew)
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
static void process_packet(const struct sr_dev_inst *sdi)
|
||||
{
|
||||
struct dev_context *devc;
|
||||
|
@ -232,4 +231,3 @@ SR_PRIV int colead_slm_receive_data(int fd, int revents, void *cb_data)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,9 +17,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LIBSIGROK_FLUKE_DMM_H
|
||||
#define LIBSIGROK_FLUKE_DMM_H
|
||||
#ifndef LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
|
||||
#define LIBSIGROK_HARDWARE_FLUKE_DMM_FLUKE_DMM_H
|
||||
|
||||
/* Message logging helpers with subsystem-specific prefix string. */
|
||||
#define LOG_PREFIX "fluke-dmm: "
|
||||
|
@ -73,4 +72,4 @@ struct dev_context {
|
|||
|
||||
SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data);
|
||||
|
||||
#endif /* LIBSIGROK_FLUKE_DMM_H */
|
||||
#endif
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "libsigrok-internal.h"
|
||||
#include "fluke-dmm.h"
|
||||
|
||||
|
||||
static struct sr_datafeed_analog *handle_qm_18x(const struct sr_dev_inst *sdi,
|
||||
char **tokens)
|
||||
{
|
||||
|
@ -532,5 +531,3 @@ SR_PRIV int fluke_receive_data(int fd, int revents, void *cb_data)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_H
|
||||
#define LIBSIGROK_HARDWARE_HANTEK_DSO_H
|
||||
#ifndef LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H
|
||||
#define LIBSIGROK_HARDWARE_HANTEK_DSO_DSO_H
|
||||
|
||||
/* Message logging helpers with subsystem-specific prefix string. */
|
||||
#define LOG_PREFIX "hantek-dso: "
|
||||
|
@ -76,8 +76,8 @@ enum dso_commands {
|
|||
CMD_GET_CAPTURESTATE,
|
||||
CMD_SET_VOLTAGE,
|
||||
/* unused */
|
||||
cmdSetLogicalData,
|
||||
cmdGetLogicalData,
|
||||
CMD_SET_LOGICALDATA,
|
||||
CMD_GET_LOGICALDATA,
|
||||
};
|
||||
|
||||
/* Must match the coupling table. */
|
||||
|
|
|
@ -168,11 +168,7 @@ static GSList *scan(GSList *options)
|
|||
|
||||
static GSList *dev_list(void)
|
||||
{
|
||||
struct drv_context *drvc;
|
||||
|
||||
drvc = di->priv;
|
||||
|
||||
return drvc->instances;
|
||||
return ((struct drv_context *)(di->priv))->instances;
|
||||
}
|
||||
|
||||
static int dev_clear(void)
|
||||
|
|
|
@ -658,4 +658,3 @@ SR_PRIV int lascar_stop_logging(const struct sr_dev_inst *sdi)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -288,4 +288,3 @@ SR_PRIV int rigol_ds1xx2_get_dev_cfg(const struct sr_dev_inst *sdi)
|
|||
|
||||
return SR_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue