Skip to content

iio: adc: ad4130: Fix clock init and GPIO init. #2842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aronkis
Copy link

@aronkis aronkis commented Jul 9, 2025

PR Description

There is an error while probing the AD4130. The clk_init_data has to be initialized as an empty struct otherwise the probe will fail.

There is an error assigning the functions of GPIO pins. Before setting the GPIO as an output, the GPIO has to be verified if it does not already has a function.

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 tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

There is an error while probing the AD4130. The clk_init_data has
to be initialized as an empty struct otherwise the probe will fail.

There is an error assigning the functions of GPIO pins. Before setting
the GPIO as an output, the GPIO has to be verified if it does not
already has a function.

Signed-off-by: Aron Kis <kis.aron@analog.com>
Copy link
Collaborator

@nunojsa nunojsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. However, you're missing fixes tag (this is a fix) and in theory you're fixing two different issues. They are simple enough that might be acceptable to go in the same patch though.

Anyways, this driver is upstream and it seems it has the same issues so please send this patch upstream (and then we can merge it in our tree)

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.

2 participants