From: Uwe Hermann Date: Fri, 10 May 2013 16:59:46 +0000 (+0200) Subject: uni-t-dmm: Use std_dev_clear(). X-Git-Tag: libsigrok-0.2.1~94 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8dca646ef9f045751353aa0929c7be25a29fcb2e;p=libsigrok.git uni-t-dmm: Use std_dev_clear(). --- diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index 5ffc6594..6f2cb69c 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -91,11 +91,7 @@ SR_PRIV struct dmm_info udmms[] = { static int clear_instances(int dmm) { - (void)dmm; - - /* TODO: Use common code later. */ - - return SR_OK; + return std_dev_clear(udmms[dmm].di, NULL); } static int hw_init(struct sr_context *sr_ctx, int dmm) @@ -200,9 +196,7 @@ static int hw_dev_close(struct sr_dev_inst *sdi) static int hw_cleanup(int dmm) { - clear_instances(dmm); - - return SR_OK; + return clear_instances(dmm); } static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi)