X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fols.c;h=d4d17688c92bf72f298fe03057b857a11fb17630;hb=4362438f1e2da14d04678327c403f9d75c4c0a48;hp=bae3f0f48d02c3defddbe221b4dd45a5259ab9e6;hpb=c0a4b9716d32811d9b2320884d3bd0e599feedcf;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/ols.c b/hardware/openbench-logic-sniffer/ols.c index bae3f0f4..d4d17688 100644 --- a/hardware/openbench-logic-sniffer/ols.c +++ b/hardware/openbench-logic-sniffer/ols.c @@ -431,7 +431,6 @@ static int hw_init(const char *deviceinfo) free(device_names[i]); } -hw_init_free_serial_params: g_free(serial_params); hw_init_free_device_names: g_free(device_names); @@ -948,17 +947,17 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id) } struct sr_device_plugin ols_plugin_info = { - "ols", - "Openbench Logic Sniffer", - 1, - hw_init, - hw_cleanup, - hw_opendev, - hw_closedev, - hw_get_device_info, - hw_get_status, - hw_get_capabilities, - hw_set_configuration, - hw_start_acquisition, - hw_stop_acquisition, + .name = "ols", + .longname = "Openbench Logic Sniffer", + .api_version = 1, + .init = hw_init, + .cleanup = hw_cleanup, + .open = hw_opendev, + .close = hw_closedev, + .get_device_info = hw_get_device_info, + .get_status = hw_get_status, + .get_capabilities = hw_get_capabilities, + .set_configuration = hw_set_configuration, + .start_acquisition = hw_start_acquisition, + .stop_acquisition = hw_stop_acquisition, };