From: Joel Holdsworth Date: Mon, 12 Mar 2012 21:06:45 +0000 (+0000) Subject: fx2lafw: Made fx2lafw profiles const X-Git-Tag: libsigrok-0.1.0~50 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4679d14db3fcc6e8990b916e0c175848af52f464;p=libsigrok.git fx2lafw: Made fx2lafw profiles const --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 88641163..92b1f7b0 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -28,7 +28,7 @@ #include "fx2lafw.h" #include "command.h" -static struct fx2lafw_profile supported_fx2[] = { +static const struct fx2lafw_profile supported_fx2[] = { /* CWAV USBee AX * EE Electronics ESLA201A */ @@ -249,7 +249,7 @@ static int hw_init(const char *deviceinfo) { struct sr_dev_inst *sdi; struct libusb_device_descriptor des; - struct fx2lafw_profile *fx2lafw_prof; + const struct fx2lafw_profile *fx2lafw_prof; struct context *ctx; libusb_device **devlist; int err; diff --git a/hardware/fx2lafw/fx2lafw.h b/hardware/fx2lafw/fx2lafw.h index fccd0232..a2e6bcfb 100644 --- a/hardware/fx2lafw/fx2lafw.h +++ b/hardware/fx2lafw/fx2lafw.h @@ -41,7 +41,7 @@ struct fx2lafw_profile { }; struct context { - struct fx2lafw_profile *profile; + const struct fx2lafw_profile *profile; /* * Since we can't keep track of an fx2lafw device after upgrading