Skip to content

iio: adc: adrv9002: fix ignored error code#3032

Merged
nunojsa merged 1 commit intomainfrom
staging/xlnx/adrv9002-fix-carrier-init
Dec 12, 2025
Merged

iio: adc: adrv9002: fix ignored error code#3032
nunojsa merged 1 commit intomainfrom
staging/xlnx/adrv9002-fix-carrier-init

Conversation

@nunojsa
Copy link
Copy Markdown
Collaborator

@nunojsa nunojsa commented Dec 2, 2025

PR Description

With commit 5547b3a ("iio: adc: adrv9002: support RX port switching") we now return -EINVAL in adrv9002_get_init_carrier(). However, the function footprint was not updated and we kept returning u64 which is obviously wrong. Update the function to return int and get the carrier as an argument pointer.

Fixes: 5547b3a ("iio: adc: adrv9002: support RX port switching")

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

With commit 5547b3a ("iio: adc: adrv9002: support RX port
switching") we now return -EINVAL in adrv9002_get_init_carrier().
However, the function footprint was not updated and we kept returning
u64 which is obviously wrong. Update the function to return int and get
the carrier as an argument pointer.

Fixes: 5547b3a ("iio: adc: adrv9002: support RX port switching")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
@cseci
Copy link
Copy Markdown
Collaborator

cseci commented Dec 2, 2025

Linux Test Harness results now available here.

@nunojsa nunojsa merged commit 53f251a into main Dec 12, 2025
30 checks passed
@nunojsa nunojsa deleted the staging/xlnx/adrv9002-fix-carrier-init branch December 12, 2025 12:43
github-actions bot pushed a commit that referenced this pull request Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants