Skip to content

Conversation

miggazElquez
Copy link
Contributor

Adds support for device PM for the lsm9ds1 driver, putting the sampling frequency of both the accelerometer and the gyroscope at 0 when the device is suspended.

Second commit is just a small style fix for consistency.

Adds support for device PM for the lsm9ds1 sensor, putting the sampling
frequency of both the accelerometer and the gyroscope at 0 when the device
is suspended.

Signed-off-by: Miguel Gazquez <[email protected]>
In both lsm9ds1 and lsm9ds1_mag drivers, the device data structure is
generally referenced with the variable name data.
However, in the initialization functions, the variable was named
lsm9ds1 (or lsm9ds1_mag for the magnetometer), which breaks this
convention.

Rename these variables to data for consistency across the driver.

Signed-off-by: Miguel Gazquez <[email protected]>
Copy link

sonarqubecloud bot commented Sep 1, 2025

Copy link
Contributor

@avisconti avisconti left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fabiobaltieri fabiobaltieri merged commit 84cfd70 into zephyrproject-rtos:main Sep 3, 2025
25 checks passed
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.

5 participants