X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fmotech-lps-30x%2Fapi.c;h=693f6e4a85baff11fe1a03e2d3c268e6700d0b0a;hb=700d6b64d578ce10e57f6a2289e37a5564eccf1c;hp=7f9c33f68d43943fb0fc47cdf6394bb2fe3b61cb;hpb=1e726f568d6d72a8c6afdcd8fa98b98e910ad523;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index 7f9c33f6..693f6e4a 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -538,11 +538,6 @@ static int dev_clear_lps301(const struct sr_dev_driver *di) return std_dev_clear(di, (std_dev_clear_callback)dev_clear_private); } -static int cleanup(const struct sr_dev_driver *di) -{ - return dev_clear_lps301(di); -} - static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { @@ -840,7 +835,7 @@ SR_PRIV struct sr_dev_driver motech_lps_301_driver_info = { .longname = "Motech LPS-301", .api_version = 1, .init = init_lps301, - .cleanup = cleanup, + .cleanup = std_cleanup, .scan = scan_lps301, .dev_list = dev_list_lps301, .dev_clear = dev_clear_lps301,