aboutsummaryrefslogtreecommitdiff
path: root/src/hardware/demo/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/demo/demo.c')
-rw-r--r--src/hardware/demo/demo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c
index cf520ca..9fa744b 100644
--- a/src/hardware/demo/demo.c
+++ b/src/hardware/demo/demo.c
@@ -876,7 +876,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi)
return SR_OK;
}
-SR_PRIV struct sr_dev_driver demo_driver_info = {
+static struct sr_dev_driver demo_driver_info = {
.name = "demo",
.longname = "Demo driver and pattern generator",
.api_version = 1,
@@ -894,3 +894,4 @@ SR_PRIV struct sr_dev_driver demo_driver_info = {
.dev_acquisition_stop = dev_acquisition_stop,
.context = NULL,
};
+SR_REGISTER_DEV_DRIVER(demo_driver_info);