Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion drivers/rf-transceiver/ad9361/ad9361.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ static int32_t ad9361_rfpll_vco_init(struct ad9361_rf_phy *phy,
uint32_t ref_clk)
{
struct no_os_spi_desc *spi = phy->spi;
const struct SynthLUT(*tab);
const struct SynthLUT(*tab) = NULL;
int32_t i = 0;
uint32_t range, offs = 0;

Expand Down Expand Up @@ -1775,6 +1775,12 @@ static int32_t ad9361_rfpll_vco_init(struct ad9361_rf_phy *phy,
}
}

if (tab == NULL) {
dev_err(&phy->spi->dev,
"%s: Failed to find suitable SynthLUT table", __func__);
return -EINVAL;
}

if (tx)
offs = REG_TX_VCO_OUTPUT - REG_RX_VCO_OUTPUT;

Expand Down
Loading