X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fapi.c;h=67735d49da30418dd229b91322e90e24f7dd91e3;hp=8a93f790dcc740d17963e7f854784d9f0a083dd6;hb=700d6b64d578ce10e57f6a2289e37a5564eccf1c;hpb=1e726f568d6d72a8c6afdcd8fa98b98e910ad523 diff --git a/src/hardware/norma-dmm/api.c b/src/hardware/norma-dmm/api.c index 8a93f790..67735d49 100644 --- a/src/hardware/norma-dmm/api.c +++ b/src/hardware/norma-dmm/api.c @@ -193,11 +193,6 @@ static int dev_close(struct sr_dev_inst *sdi) return SR_OK; } -static int cleanup(const struct sr_dev_driver *di) -{ - return std_dev_clear(di, NULL); -} - static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { @@ -290,7 +285,7 @@ SR_PRIV struct sr_dev_driver norma_dmm_driver_info = { .longname = "Norma DM9x0 DMMs", .api_version = 1, .init = init, - .cleanup = cleanup, + .cleanup = std_cleanup, .scan = scan, .dev_list = dev_list, .dev_clear = NULL, @@ -309,7 +304,7 @@ SR_PRIV struct sr_dev_driver siemens_b102x_driver_info = { .longname = "Siemens B102x DMMs", .api_version = 1, .init = init, - .cleanup = cleanup, + .cleanup = std_cleanup, .scan = scan, .dev_list = dev_list, .dev_clear = NULL,