Remove const from priv_caps in icom rig backends

Part of implementing some dynamic caps
Can stil be const in routines that are read-only as in icom.c
pull/193/head
Michael Black 2020-01-28 08:32:25 -06:00
rodzic d0ebb52593
commit c2820e4ac2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
24 zmienionych plików z 30 dodań i 29 usunięć

Wyświetl plik

@ -118,12 +118,13 @@ int ic785x_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
*
* TODO: complete command set (esp. the $1A bunch!) and testing..
*/
static const struct icom_priv_caps ic785x_priv_caps =
static struct icom_priv_caps ic785x_priv_caps =
{
0x8e, /* default address */
0, /* 731 mode */
0, /* no XCHG */
ic756pro_ts_sc_list,
.re_civ_addr = 0x8e, /* default address */
.civ_731_mode = 0, /* 731 mode */
.no_xchg = 0, /* no XCHG */
.antack_len = 3,
.ts_sc_list = ic756pro_ts_sc_list,
.agc_levels_present = 1,
.agc_levels = {
{ .level = RIG_AGC_OFF, .icom_level = 0 },

Wyświetl plik

@ -47,7 +47,7 @@
{ 160, 60 } /* +60 */ \
} }
static const struct icom_priv_caps icr10_priv_caps =
static struct icom_priv_caps icr10_priv_caps =
{
0x52, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -47,7 +47,7 @@
{ 255, 60 } /* +60 */ \
} }
static const struct icom_priv_caps icr20_priv_caps =
static struct icom_priv_caps icr20_priv_caps =
{
0x6c, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -113,7 +113,7 @@ int icr30_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
}
}
static const struct icom_priv_caps icr30_priv_caps =
static struct icom_priv_caps icr30_priv_caps =
{
0x9c, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -46,7 +46,7 @@
{ 255, 60 } /* +60 */ \
} }
static const struct icom_priv_caps icr6_priv_caps =
static struct icom_priv_caps icr6_priv_caps =
{
0x7e, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -49,7 +49,7 @@ static int r7000_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
/* FIXME: S-Meter measurements */
#define ICR7100_STR_CAL UNKNOWN_IC_STR_CAL
static const struct icom_priv_caps icr7000_priv_caps =
static struct icom_priv_caps icr7000_priv_caps =
{
0x08, /* default address */
0, /* 731 mode */
@ -164,7 +164,7 @@ const struct rig_caps icr7000_caps =
};
static const struct icom_priv_caps icr7100_priv_caps =
static struct icom_priv_caps icr7100_priv_caps =
{
0x34, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -40,7 +40,7 @@
#define ICR71_VFO_OPS (RIG_OP_FROM_VFO|RIG_OP_TO_VFO)
#define ICR71_SCAN_OPS (RIG_SCAN_NONE)
static const struct icom_priv_caps icr71_priv_caps =
static struct icom_priv_caps icr71_priv_caps =
{
0x1a, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -41,7 +41,7 @@
#define ICR71_VFO_OPS (RIG_OP_FROM_VFO|RIG_OP_TO_VFO|RIG_OP_MCL)
#define ICR72_SCAN_OPS (RIG_SCAN_MEM|RIG_SCAN_VFO|RIG_SCAN_SLCT|RIG_SCAN_PRIO)
static const struct icom_priv_caps icr72_priv_caps =
static struct icom_priv_caps icr72_priv_caps =
{
0x32, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -96,7 +96,7 @@ static int icr75_get_channel(RIG *rig, channel_t *chan);
int icr75_set_parm(RIG *rig, setting_t parm, value_t val);
int icr75_get_parm(RIG *rig, setting_t parm, value_t *val);
static const struct icom_priv_caps icr75_priv_caps =
static struct icom_priv_caps icr75_priv_caps =
{
0x5a, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -63,7 +63,7 @@
int icr8500_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
static const struct icom_priv_caps icr8500_priv_caps =
static struct icom_priv_caps icr8500_priv_caps =
{
0x4a, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -102,7 +102,7 @@ struct cmdparams icr8600_extcmds[] = {
.flags = 1, \
}
static const struct icom_priv_caps icr8600_priv_caps =
static struct icom_priv_caps icr8600_priv_caps =
{
0x96, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -57,7 +57,7 @@
/* TODO: S-Meter measurements */
#define ICR9000_STR_CAL UNKNOWN_IC_STR_CAL
static const struct icom_priv_caps icr9000_priv_caps =
static struct icom_priv_caps icr9000_priv_caps =
{
0x2a, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -73,7 +73,7 @@
} }
static const struct icom_priv_caps icr9500_priv_caps =
static struct icom_priv_caps icr9500_priv_caps =
{
0x72, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -45,7 +45,7 @@
*/
#define ICRX7_STR_CAL UNKNOWN_IC_STR_CAL
static const struct icom_priv_caps icrx7_priv_caps =
static struct icom_priv_caps icrx7_priv_caps =
{
0x78, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -64,7 +64,7 @@ const struct ts_sc_list id1_ts_sc_list[] =
/*
*/
static const struct icom_priv_caps id1_priv_caps =
static struct icom_priv_caps id1_priv_caps =
{
0x01, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -73,7 +73,7 @@
/*
*/
static const struct icom_priv_caps id31_priv_caps =
static struct icom_priv_caps id31_priv_caps =
{
0xA0, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -77,7 +77,7 @@
/*
*/
static const struct icom_priv_caps id4100_priv_caps =
static struct icom_priv_caps id4100_priv_caps =
{
0x9A, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -80,7 +80,7 @@ int id51_tokens[] = { TOK_DSTAR_DSQL, TOK_DSTAR_CALL_SIGN, TOK_DSTAR_MESSAGE, TO
/*
*/
static const struct icom_priv_caps id51_priv_caps =
static struct icom_priv_caps id51_priv_caps =
{
0x86, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -77,7 +77,7 @@
/*
*/
static const struct icom_priv_caps id5100_priv_caps =
static struct icom_priv_caps id5100_priv_caps =
{
0x8C, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -55,7 +55,7 @@ static int omni6_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
static int omni6_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
static int omni6_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit);
static const struct icom_priv_caps omnivip_priv_caps =
static struct icom_priv_caps omnivip_priv_caps =
{
0x04, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -64,7 +64,7 @@ extern struct confparams opto_ext_parms[];
* TODO: srch_dcs, srch_ctcss, rcv_dtmf, and make icom_probe opto aware
*/
static const struct icom_priv_caps os456_priv_caps =
static struct icom_priv_caps os456_priv_caps =
{
0x80, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -56,7 +56,7 @@ extern struct confparams opto_ext_parms[];
* TODO: srch_dcs, srch_ctcss, rcv_dtmf, and make icom_probe opto aware
*/
static const struct icom_priv_caps os535_priv_caps =
static struct icom_priv_caps os535_priv_caps =
{
0x80, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -63,7 +63,7 @@ static int perseus_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
static void perseus_i2r_mode(RIG *rig, unsigned char md, int pd,
rmode_t *mode, pbwidth_t *width);
static const struct icom_priv_caps perseus_priv_caps =
static struct icom_priv_caps perseus_priv_caps =
{
0xE1, /* default address */
0, /* 731 mode */

Wyświetl plik

@ -124,7 +124,7 @@ static int x108g_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode,
*
* TODO: complete command set (esp. the $1A bunch!) and testing..
*/
static const struct icom_priv_caps x108g_priv_caps =
static struct icom_priv_caps x108g_priv_caps =
{
0x70, /* default address */
0, /* 731 mode */