fx2lafw: Made fx2lafw profiles const
This commit is contained in:
parent
6ccfadaf66
commit
4679d14db3
|
@ -28,7 +28,7 @@
|
||||||
#include "fx2lafw.h"
|
#include "fx2lafw.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
static struct fx2lafw_profile supported_fx2[] = {
|
static const struct fx2lafw_profile supported_fx2[] = {
|
||||||
/* CWAV USBee AX
|
/* CWAV USBee AX
|
||||||
* EE Electronics ESLA201A
|
* EE Electronics ESLA201A
|
||||||
*/
|
*/
|
||||||
|
@ -249,7 +249,7 @@ static int hw_init(const char *deviceinfo)
|
||||||
{
|
{
|
||||||
struct sr_dev_inst *sdi;
|
struct sr_dev_inst *sdi;
|
||||||
struct libusb_device_descriptor des;
|
struct libusb_device_descriptor des;
|
||||||
struct fx2lafw_profile *fx2lafw_prof;
|
const struct fx2lafw_profile *fx2lafw_prof;
|
||||||
struct context *ctx;
|
struct context *ctx;
|
||||||
libusb_device **devlist;
|
libusb_device **devlist;
|
||||||
int err;
|
int err;
|
||||||
|
|
|
@ -41,7 +41,7 @@ struct fx2lafw_profile {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct context {
|
struct context {
|
||||||
struct fx2lafw_profile *profile;
|
const struct fx2lafw_profile *profile;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since we can't keep track of an fx2lafw device after upgrading
|
* Since we can't keep track of an fx2lafw device after upgrading
|
||||||
|
|
Loading…
Reference in New Issue