drivers: ieee802154: cc13/26xx_subg: remove unused radio commands
The CMD_CLEAR_RX and CMD_SET_TX_POWER commands are declared and initialized but not used anywhere. They are therefore removed to reduce RAM/flash footprint. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
This commit is contained in:
parent
a94877b8b1
commit
0ea5658491
4 changed files with 0 additions and 22 deletions
|
|
@ -637,11 +637,6 @@ static struct ieee802154_cc13xx_cc26xx_data ieee802154_cc13xx_cc26xx_data = {
|
|||
.commandNo = CMD_IEEE_CCA_REQ,
|
||||
},
|
||||
|
||||
.cmd_clear_rx = {
|
||||
.commandNo = CMD_CLEAR_RX,
|
||||
.pQueue = &ieee802154_cc13xx_cc26xx_data.rx_queue,
|
||||
},
|
||||
|
||||
.cmd_ieee_rx = {
|
||||
.commandNo = CMD_IEEE_RX,
|
||||
.status = IDLE,
|
||||
|
|
@ -715,10 +710,6 @@ static struct ieee802154_cc13xx_cc26xx_data ieee802154_cc13xx_cc26xx_data = {
|
|||
.endTrigger.triggerType = TRIG_NEVER
|
||||
},
|
||||
|
||||
.cmd_set_tx_power = {
|
||||
.commandNo = CMD_SET_TX_POWER
|
||||
},
|
||||
|
||||
.cmd_ieee_csma = {
|
||||
.commandNo = CMD_IEEE_CSMA,
|
||||
.status = IDLE,
|
||||
|
|
|
|||
|
|
@ -76,9 +76,7 @@ struct ieee802154_cc13xx_cc26xx_data {
|
|||
|
||||
volatile rfc_CMD_FS_t cmd_fs;
|
||||
volatile rfc_CMD_IEEE_CCA_REQ_t cmd_ieee_cca_req;
|
||||
volatile rfc_CMD_CLEAR_RX_t cmd_clear_rx;
|
||||
volatile rfc_CMD_IEEE_RX_t cmd_ieee_rx;
|
||||
volatile rfc_CMD_SET_TX_POWER_t cmd_set_tx_power;
|
||||
volatile rfc_CMD_IEEE_CSMA_t cmd_ieee_csma;
|
||||
volatile rfc_CMD_IEEE_TX_t cmd_ieee_tx;
|
||||
volatile rfc_CMD_IEEE_RX_ACK_t cmd_ieee_rx_ack;
|
||||
|
|
|
|||
|
|
@ -830,16 +830,7 @@ static int ieee802154_cc13xx_cc26xx_subg_init(const struct device *dev)
|
|||
}
|
||||
|
||||
static struct ieee802154_cc13xx_cc26xx_subg_data ieee802154_cc13xx_cc26xx_subg_data = {
|
||||
.cmd_set_tx_power = {
|
||||
.commandNo = CMD_SET_TX_POWER
|
||||
},
|
||||
|
||||
/* Common Radio Commands */
|
||||
.cmd_clear_rx = {
|
||||
.commandNo = CMD_CLEAR_RX,
|
||||
.pQueue = &ieee802154_cc13xx_cc26xx_subg_data.rx_queue,
|
||||
},
|
||||
|
||||
.cmd_fs = {
|
||||
.commandNo = CMD_FS,
|
||||
.condition.rule = COND_NEVER,
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ struct ieee802154_cc13xx_cc26xx_subg_data {
|
|||
uint8_t tx_data[CC13XX_CC26XX_TX_BUF_SIZE];
|
||||
|
||||
/* Common Radio Commands */
|
||||
volatile rfc_CMD_CLEAR_RX_t cmd_clear_rx;
|
||||
volatile rfc_CMD_SET_TX_POWER_t cmd_set_tx_power;
|
||||
volatile rfc_CMD_FS_t cmd_fs;
|
||||
|
||||
/* Sub-GHz Radio Commands */
|
||||
|
|
|
|||
Loading…
Reference in a new issue