]> sigrok.org Git - libsigrok.git/blobdiff - hardware/tondaj-sl-814/protocol.h
build: Portability fixes.
[libsigrok.git] / hardware / tondaj-sl-814 / protocol.h
index 2ab69b658058c8bbbdba0816cce738ec092c665e..027b66dfddce61b60cb3eaee7f58dc2217bbb4ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
  *
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 
-/* Message logging helpers with driver-specific prefix string. */
-#define DRIVER_LOG_DOMAIN "tondaj-sl-814: "
-#define sr_log(l, s, args...) sr_log(l, DRIVER_LOG_DOMAIN s, ## args)
-#define sr_spew(s, args...) sr_spew(DRIVER_LOG_DOMAIN s, ## args)
-#define sr_dbg(s, args...) sr_dbg(DRIVER_LOG_DOMAIN s, ## args)
-#define sr_info(s, args...) sr_info(DRIVER_LOG_DOMAIN s, ## args)
-#define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args)
-#define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args)
+#define LOG_PREFIX "tondaj-sl-814"
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
@@ -48,8 +41,6 @@ struct dev_context {
        /** The current number of already received samples. */
        uint64_t num_samples;
 
-       struct sr_serial_dev_inst *serial;
-
        int state;
 
        uint8_t buf[4];