Random cosmetics and whitespace fixes.

This commit is contained in:
Uwe Hermann 2016-04-22 17:55:44 +02:00
parent 67ea60e03d
commit a52e2a0b37
3 changed files with 4 additions and 6 deletions

View File

@ -204,7 +204,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi,
const struct sr_channel_group *cg)
{
(void)sdi;
(void)cg;
switch (key) {

View File

@ -351,7 +351,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
struct sr_modbus_dev_inst *modbus;
int ret;
(void)data;
(void)cg;
if (sdi->status != SR_ST_ACTIVE)

View File

@ -25,25 +25,25 @@ SR_PRIV int testo_set_serial_params(struct sr_usb_dev_inst *usb)
{
int ret;
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE,
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE,
FTDI_BAUDRATE_115200, FTDI_INDEX, NULL, 0, 10)) < 0) {
sr_err("Failed to set baudrate: %s", libusb_error_name(ret));
return SR_ERR;
}
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS,
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS,
FTDI_PARAMS_8N1, FTDI_INDEX, NULL, 0, 10)) < 0) {
sr_err("Failed to set comm parameters: %s", libusb_error_name(ret));
return SR_ERR;
}
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL,
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL,
FTDI_FLOW_NONE, FTDI_INDEX, NULL, 0, 10)) < 0) {
sr_err("Failed to set flow control: %s", libusb_error_name(ret));
return SR_ERR;
}
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL,
if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL,
FTDI_MODEM_ALLHIGH, FTDI_INDEX, NULL, 0, 10)) < 0) {
sr_err("Failed to set modem control: %s", libusb_error_name(ret));
return SR_ERR;