sr: s/SR_{USB,SERIAL}_INST/SR_INST_{USB,SERIAL}/.

This commit is contained in:
Uwe Hermann 2012-03-14 20:02:48 +01:00
parent 4502e86921
commit 4101f961e8
2 changed files with 6 additions and 3 deletions

View File

@ -691,7 +691,8 @@ static int receive_data(int fd, int revents, void *cb_data)
double analog_out[1024];
size_t i, s;
revents = revents;
/* Avoid compiler warnings. */
(void)revents;
s = serial_read(fd, in, sizeof(in));
if (s <= 0)

View File

@ -288,8 +288,10 @@ struct sr_dev_inst {
/* sr_dev_inst types */
enum {
SR_USB_INST,
SR_SERIAL_INST,
/** Device instance type for USB devices. */
SR_INST_USB,
/** Device instance type for serial port devices. */
SR_INST_SERIAL,
};
/* Device instance status */