Random whitespace/cosmetic/typo fixes.
This commit is contained in:
parent
015df4ae8f
commit
07182332f0
|
@ -347,7 +347,6 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
|
||||||
g_mutex_clear(&devc->acquisition_mutex);
|
g_mutex_clear(&devc->acquisition_mutex);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct sr_dev_driver arachnid_labs_re_load_pro_driver_info = {
|
static struct sr_dev_driver arachnid_labs_re_load_pro_driver_info = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the libsigrok project.
|
* This file is part of the libsigrok project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the libsigrok project.
|
* This file is part of the libsigrok project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the libsigrok project.
|
* This file is part of the libsigrok project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the libsigrok project.
|
* This file is part of the libsigrok project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the libsigrok project.
|
* This file is part of the libsigrok project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -140,7 +140,7 @@ static struct sr_dev_inst *probe_device(struct sr_modbus_dev_inst *modbus)
|
||||||
sdi->status = SR_ST_INACTIVE;
|
sdi->status = SR_ST_INACTIVE;
|
||||||
sdi->vendor = g_strdup("Maynuo");
|
sdi->vendor = g_strdup("Maynuo");
|
||||||
sdi->model = g_strdup(model->name);
|
sdi->model = g_strdup(model->name);
|
||||||
sdi->version = g_strdup_printf("v%d.%d", version/10, version%10);
|
sdi->version = g_strdup_printf("v%d.%d", version / 10, version % 10);
|
||||||
sdi->conn = modbus;
|
sdi->conn = modbus;
|
||||||
sdi->driver = &maynuo_m97_driver_info;
|
sdi->driver = &maynuo_m97_driver_info;
|
||||||
sdi->inst_type = SR_INST_MODBUS;
|
sdi->inst_type = SR_INST_MODBUS;
|
||||||
|
|
|
@ -441,7 +441,7 @@ static GSList *do_scan(lps_modelid modelid, struct sr_dev_driver *drv, GSList *o
|
||||||
devc->channel_status[cnt].info = g_slist_append(NULL, ch);
|
devc->channel_status[cnt].info = g_slist_append(NULL, ch);
|
||||||
|
|
||||||
cg = g_malloc(sizeof(struct sr_channel_group));
|
cg = g_malloc(sizeof(struct sr_channel_group));
|
||||||
snprintf(channel, sizeof(channel), "CG%d", cnt+1);
|
snprintf(channel, sizeof(channel), "CG%d", cnt + 1);
|
||||||
cg->name = g_strdup(channel);
|
cg->name = g_strdup(channel);
|
||||||
cg->priv = NULL;
|
cg->priv = NULL;
|
||||||
cg->channels = g_slist_append(NULL, ch);
|
cg->channels = g_slist_append(NULL, ch);
|
||||||
|
|
Loading…
Reference in New Issue