From: Uwe Hermann Date: Wed, 29 Aug 2018 22:58:57 +0000 (+0200) Subject: ipdbg-la: Use std_init() and std_dev_list(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3831eaf9f466f3e8c1837652c4512fabfc418b27;p=libsigrok.git ipdbg-la: Use std_init() and std_dev_list(). --- diff --git a/src/hardware/ipdbg-la/api.c b/src/hardware/ipdbg-la/api.c index 59996093..397df226 100644 --- a/src/hardware/ipdbg-la/api.c +++ b/src/hardware/ipdbg-la/api.c @@ -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,