Skip to content
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

sensor: adxl3xx: Move run-time ODR changes from cfg to data #83852

Conversation

ubieda
Copy link
Member

@ubieda ubieda commented Jan 11, 2025

cfg struct is constant and attempting to modify it triggers a fault. Instead, moved to data.

Fixes #83853

@ubieda ubieda added the backport v4.0-branch Backport to the v4.0-branch label Jan 11, 2025
@ubieda ubieda marked this pull request as ready for review January 11, 2025 18:42
@zephyrbot zephyrbot added platform: ADI Analog Devices, Inc. area: Sensors Sensors labels Jan 11, 2025
teburd
teburd previously approved these changes Jan 11, 2025
ttmut
ttmut previously approved these changes Jan 12, 2025
@ubieda
Copy link
Member Author

ubieda commented Jan 13, 2025

I'll change this PR based on feedback obtained in the issue: #83853 (comment)

@ubieda ubieda added the DNM This PR should not be merged (Do Not Merge) label Jan 13, 2025
@ubieda ubieda dismissed stale reviews from ttmut and teburd via ff54222 January 14, 2025 17:57
@ubieda ubieda force-pushed the croxel/adxl-fix-cfg-struct-modified-at-run-time branch from cbba1b4 to ff54222 Compare January 14, 2025 17:57
@ubieda ubieda changed the title sensor: adxl3xx: Remove run-time modifications of config device struct sensor: adxl3xx: Move run-time ODR changes from cfg to data Jan 14, 2025
@ubieda ubieda removed the DNM This PR should not be merged (Do Not Merge) label Jan 14, 2025
@ubieda ubieda requested a review from glenn-andrews January 14, 2025 17:59
glenn-andrews
glenn-andrews previously approved these changes Jan 14, 2025
@ubieda ubieda requested review from ttmut and teburd January 14, 2025 18:56
Config struct is constant and attempting to modify it triggers a fault.

Signed-off-by: Luis Ubieda <[email protected]>
@ubieda ubieda force-pushed the croxel/adxl-fix-cfg-struct-modified-at-run-time branch from ff54222 to 6e02da9 Compare January 14, 2025 20:01
@ubieda
Copy link
Member Author

ubieda commented Jan 14, 2025

Fixed a typo on the adxl372_data struct. Should pass now

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

Thanks @ubieda !

@kartben kartben merged commit 5a9ff03 into zephyrproject-rtos:main Jan 15, 2025
24 checks passed
@ubieda ubieda deleted the croxel/adxl-fix-cfg-struct-modified-at-run-time branch January 21, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors backport v4.0-branch Backport to the v4.0-branch platform: ADI Analog Devices, Inc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ADXL sensor drivers attempt to modify config struct at run-time
7 participants