Skip to content

iio: adc: adrv9002: Explicitly remove bin attributes#2974

Merged
nunojsa merged 1 commit intomainfrom
staging/xlnx/fix/adrv9002-bin-attr-removal
Oct 9, 2025
Merged

iio: adc: adrv9002: Explicitly remove bin attributes#2974
nunojsa merged 1 commit intomainfrom
staging/xlnx/fix/adrv9002-bin-attr-removal

Conversation

@nunojsa
Copy link
Copy Markdown
Collaborator

@nunojsa nunojsa commented Oct 8, 2025

PR Description

Explicitly remove all bin attributes when unbinding the device. While the complete kobject directory is removed on device_del() we should not rely on internals of the driver core code. Hence, add an helper function to add the attributed and add a devm action to explicitly remove them.

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)

Explicitly remove all bin attributes when unbinding the device. While
the complete kobject directory is removed on device_del() we should not
rely on internals of the driver core code. Hence, add an helper function
to add the attributed and add a devm action to explicitly remove them.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
@nunojsa nunojsa merged commit 8fb09a8 into main Oct 9, 2025
40 of 42 checks passed
@nunojsa nunojsa deleted the staging/xlnx/fix/adrv9002-bin-attr-removal branch October 9, 2025 15:25
github-actions Bot pushed a commit that referenced this pull request Oct 9, 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.

2 participants