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

drivers: sensor: ti: ina230: Fix shared data between instances #82707

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

jurenat
Copy link
Contributor

@jurenat jurenat commented Dec 8, 2024

This commit fixes a shared context between multiple instances of the INA230 and INA236 driver. The issue is the naming of the instance data in INA230_DRIVER_INIT macro when we have one instance of INA230 and one of INA236 the name of the data variable will be drv_data_0. This variable will then be passed to both instances.

This commit fixes a shared context between multiple instances of the
INA230 and INA236 driver. The issue is the naming of the instance data in
`INA230_DRIVER_INIT` macro when we have one instance of INA230 and one
of INA236 the name of the data variable will be `drv_data_0`. This
variable will then be passed to both instances.

Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
@kartben kartben merged commit 96eb476 into zephyrproject-rtos:main Dec 12, 2024
27 checks passed
@jurenat jurenat deleted the fix-ina230-shared-context branch December 12, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants