From: Uwe Hermann Date: Fri, 28 Feb 2014 12:11:46 +0000 (+0100) Subject: brymen-bm86x: Remove std_dev_clear() wrapper. X-Git-Tag: libsigrok-0.3.0~131 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0ab702601d6b855f162340da9a19b1885ee16253;p=libsigrok.git brymen-bm86x: Remove std_dev_clear() wrapper. --- diff --git a/hardware/brymen-bm86x/api.c b/hardware/brymen-bm86x/api.c index 9ab60dff..802d443a 100644 --- a/hardware/brymen-bm86x/api.c +++ b/hardware/brymen-bm86x/api.c @@ -108,11 +108,6 @@ static GSList *dev_list(void) return ((struct drv_context *)(di->priv))->instances; } -static int dev_clear(void) -{ - return std_dev_clear(di, NULL); -} - static int dev_open(struct sr_dev_inst *sdi) { struct drv_context *drvc = di->priv; @@ -184,7 +179,7 @@ static int dev_close(struct sr_dev_inst *sdi) static int cleanup(void) { - return dev_clear(); + return std_dev_clear(di, NULL); } static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, @@ -305,7 +300,7 @@ SR_PRIV struct sr_dev_driver brymen_bm86x_driver_info = { .cleanup = cleanup, .scan = scan, .dev_list = dev_list, - .dev_clear = dev_clear, + .dev_clear = NULL, .config_get = config_get, .config_set = config_set, .config_list = config_list, diff --git a/hardware/brymen-bm86x/protocol.h b/hardware/brymen-bm86x/protocol.h index 5590d4e3..d3d8955d 100644 --- a/hardware/brymen-bm86x/protocol.h +++ b/hardware/brymen-bm86x/protocol.h @@ -25,7 +25,6 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with subsystem-specific prefix string. */ #define LOG_PREFIX "brymen-bm86x" /** Private, per-device-instance driver context. */