]> sigrok.org Git - libsigrok.git/commitdiff
ipdbg-la: Use std_init() and std_dev_list().
authorUwe Hermann <redacted>
Wed, 29 Aug 2018 22:58:57 +0000 (00:58 +0200)
committerUwe Hermann <redacted>
Wed, 29 Aug 2018 23:22:02 +0000 (01:22 +0200)
src/hardware/ipdbg-la/api.c

index 599960938c7b41fa998893379ceca14b137d8dc4..397df2263a48862e856d47a53e3aa2062908dad3 100644 (file)
@@ -236,16 +236,6 @@ static int config_list(uint32_t key, GVariant **data,
        return SR_OK;
 }
 
-static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
-{
-       return std_init(di, sr_ctx);
-}
-
-static GSList *dev_list(const struct sr_dev_driver *di)
-{
-       return ((struct drv_context *)(di->context))->instances;
-}
-
 static int dev_acquisition_start(const struct sr_dev_inst *sdi)
 {
        struct ipdbg_la_tcp *tcp = sdi->conn;
@@ -291,10 +281,10 @@ SR_PRIV struct sr_dev_driver ipdbg_la_driver_info = {
        .name = "ipdbg-la",
        .longname = "IPDBG LA",
        .api_version = 1,
-       .init = init,
+       .init = std_init,
        .cleanup = std_cleanup,
        .scan = scan,
-       .dev_list = dev_list,
+       .dev_list = std_dev_list,
        .dev_clear = dev_clear,
        .config_get = config_get,
        .config_set = config_set,