Skip to content

Commit

Permalink
iio: adc: adrv9002: adapt for the new SDK
Browse files Browse the repository at this point in the history
The adi_adrv9001_Temperature_Get() API and now get's an extra argument.
Fix that call and use SPI for reading the temperature (which means we
can some outdated values sometimes but that should not be a big issue).

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed Jan 17, 2025
1 parent 5eae084 commit cacf390
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/iio/adc/navassa/adrv9002.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,8 @@ static int adrv9002_phy_read_raw_no_rf_chan(const struct adrv9002_rf_phy *phy,
case IIO_CHAN_INFO_PROCESSED:
switch (chan->type) {
case IIO_TEMP:
ret = api_call(phy, adi_adrv9001_Temperature_Get, &temp);
ret = api_call(phy, adi_adrv9001_Temperature_Get,
ADI_ADRV9001_TEMPERATURE_READ_SPI, &temp);
if (ret)
return ret;

Expand Down

0 comments on commit cacf390

Please sign in to comment.