]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/api.c
Introduce standard cleanup helper
[libsigrok.git] / src / hardware / baylibre-acme / api.c
index c886bfcc26a4076309135c444932a4a24b792a14..23c75d84877979b173d06e7fb3350412e54dee98 100644 (file)
@@ -170,13 +170,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 config_get(uint32_t key, GVariant **data,
                      const struct sr_dev_inst *sdi,
                      const struct sr_channel_group *cg)
@@ -422,7 +415,7 @@ SR_PRIV struct sr_dev_driver baylibre_acme_driver_info = {
        .longname = "BayLibre ACME (Another Cute Measurement Equipment)",
        .api_version = 1,
        .init = init,
-       .cleanup = cleanup,
+       .cleanup = std_cleanup,
        .scan = scan,
        .dev_list = dev_list,
        .dev_clear = dev_clear,