]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/api.c
Drop unnecessary struct sr_dev_driver forward declarations
[libsigrok.git] / src / hardware / beaglelogic / api.c
index e28350c1efb146c91887dcfeee27d537bbaa5f0b..e862d99ea90ea84af2a36ff032f9a642d3249466 100644 (file)
@@ -21,8 +21,6 @@
 #include "protocol.h"
 #include "beaglelogic.h"
 
-SR_PRIV struct sr_dev_driver beaglelogic_driver_info;
-
 /* Scan options */
 static const uint32_t scanopts[] = {
        SR_CONF_NUM_LOGIC_CHANNELS,
@@ -60,11 +58,6 @@ static const uint64_t samplerates[] = {
        SR_HZ(1),
 };
 
-static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
-{
-       return std_init(di, sr_ctx);
-}
-
 static struct dev_context *beaglelogic_devc_alloc(void)
 {
        struct dev_context *devc;
@@ -367,7 +360,7 @@ SR_PRIV struct sr_dev_driver beaglelogic_driver_info = {
        .name = "beaglelogic",
        .longname = "BeagleLogic",
        .api_version = 1,
-       .init = init,
+       .init = std_init,
        .cleanup = std_cleanup,
        .scan = scan,
        .dev_list = std_dev_list,