]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/api.c
Introduce standard cleanup helper
[libsigrok.git] / src / hardware / hameg-hmo / api.c
index a9bcca8c1703c9b1ec8525b65c85c8e5c2298c9c..2ea5ca79efaf3c8ab3694f9292138e78976553c4 100644 (file)
@@ -166,13 +166,6 @@ static int dev_close(struct sr_dev_inst *sdi)
        return SR_OK;
 }
 
-static int cleanup(const struct sr_dev_driver *di)
-{
-       dev_clear(di);
-
-       return SR_OK;
-}
-
 static int check_channel_group(struct dev_context *devc,
                             const struct sr_channel_group *cg)
 {
@@ -790,7 +783,7 @@ SR_PRIV struct sr_dev_driver hameg_hmo_driver_info = {
        .longname = "Hameg HMO",
        .api_version = 1,
        .init = init,
-       .cleanup = cleanup,
+       .cleanup = std_cleanup,
        .scan = scan,
        .dev_list = dev_list,
        .dev_clear = dev_clear,