Commit graph zephyr/drivers/sensor
Author SHA1 Message Date
Guillaume Gautier
edecb7a735 drivers: sensor: stm32_temp: add injected mode support
Add injected mode support for STM32 temperature sensor.
When in injected mode, this configures the sensor channel and sensor enable
bit at start to prevent any conflict later: some registers can't be written
while a conversion is on-going.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Terry Geng
9d5cc50cc9 drivers: sensor: hx711_spi: Define trigger variables if pinctrl is set
All trigger related variables will be defined only if pinctrl has name
`trigger`. This can save some RAM when having multiple hx711 configured
but only using trigger for some of them.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Terry Geng
fba78a3b73 drivers: sensor: hx711_spi: Add data ready trigger to HX711 driver
HX711 pulls DOUT low when data is ready. This commit enabled pin config
to switch from SPI to GPIO and set up GPIIO interrupts for the falling
edge.

The implementation is similar to the `infineon,airoc-wifi` driver, by
using pinctrl.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Terry Geng
1fec903653 drivers: sensor: hx711_spi: Add spi driver for HX711
HX711 is a specialized 24-bit ADC for load cell and strain gauge sensors.
It uses a two-wire (PD_SCK and DOUT) serial protocol that
 - first 24 clock cycles reads out the sample
 - last 1 to 3 clock cycles set the PGA gain for the next sample

 The requirement of control the exact number of clock cycles makes the
 SCK for SPI unsuitable for clocking HX711. Instead, in this commit, the
 clock is implemented as a series of 0xAA on the MOSI.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Jan Carlo Roleda
d6eeab9600 drivers: sensor: adt7420: add support for ADT7410 and ADT7422
Add configuration to support ADT7410 and ADT7422
hardware specifications.

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Jan Carlo Roleda
ac44c8b550 drivers: sensor: adt7420: add power management support
Add Power Management Subsystem to ADT7420 driver for
suspending and resuming device operations.

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Jan Carlo Roleda
d07b8a20f6 drivers: sensor: adt7420: Extend ADT7420 Driver Support
Extended ADT7420 driver to support:
- extend dtbindings for comprehensive configuration control
- Support 13-bit and 16-bit ADC resolution
- extend Sensor API support
- extend interrupt support to include CT pin

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Armando Visconti
4d42b179e9 drivers/sensor: st: fix i2c transfer len
Fix I2C transaction len using the correct size of the data to be sent
and not the returned length of the allocated buffer. This change is
applied to iis3dwb, lis2dux12 and lsm6dsv16x drivers, and mimic what
is also done for lsm6dsvxxx driver.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-20 09:58:05 -05:00
Sergei Ovchinnikov
9ecbe311d4 drivers: sensor: nPM10xx sensor bindings and driver
Nordic's nPM10 Series PMIC Sensor Devicetree bindings and minimal driver
supporting only battery current, voltage and temperature measurements.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2026-03-20 09:55:57 -05:00
Guillaume Gautier
c5106cc71e drivers: sensor: st: qdec: update qdec driver for stm32 hal2
In STM32 HAL2, some define have been renamed.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-19 14:52:01 -05:00
William Markezana
2396b97c45 drivers: sensor: add QST QMI8658A 6-axis IMU driver
Add driver for the QST QMI8658A 6-axis inertial measurement unit
with accelerometer and gyroscope. Supports I2C bus, configurable
full-scale range and ODR via devicetree, temperature readout, and
optional data-ready interrupt trigger on INT2.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-19 14:46:17 -05:00
Brenden Adamczak
b22634d1d2 drivers/sensor: lsm6dsvxxx: fix i2c transfer len
Fix I2C transaction len using the correct size of the data to be sent
and not the returned length of the allocated buffer.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Brenden Adamczak <cerebralasylum1@gmail.com>
Co-authored-by: Armando Visconti <armando.visconti@st.com>
2026-03-18 15:24:26 -05:00
Fin Maaß
7d74695fa3 drivers: sensor: ina226: add support for SHUNT_VOLTAGE
For the ina226 shunt voltage is implemented and supported,
unfortunatly it was forgotten to select
INA2XX_HAS_CHANNEL_SHUNT_VOLTAGE.
Since 70423db9d1c69d32597ba1f7b2fe66569014a4b0 it will
no longer build. This fixes it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-18 08:45:02 -05:00
Felix van Beusekom
339b22dd4f drivers: sensor: lis2dw12: remove unused variable
The variable lis2dw12 is not used inside this function

Signed-off-by: Felix van Beusekom <felixvanbeusekom@live.nl>
2026-03-17 18:24:24 -04:00
David J. Leach, Jr.
fd62462389 drivers: sensor: icm42x70: validate FIFO packet count
The driver was using a packet count value read directly from the
hardware to control a loop bound and a register read size. If the
hardware reported a value exceeding the internal buffer size, it
could lead to a buffer overflow or an untrusted loop bound.

Add a check to cap the packet_count based on the actual size of
the driver's FIFO data buffer.

Fixes #90512

Signed-off-by: David J. Leach, Jr. <tasmar@gmail.com>
2026-03-16 19:08:53 -05:00
David J. Leach, Jr.
5509ab12bc drivers: sensor: icm4268x: annotate intentional unsigned comparison
The IS_ACCEL macro checks if a channel is within the accelerometer
range. Because SENSOR_CHAN_ACCEL_X currently evaluates to 0 and
the channel type is unsigned, Coverity flags this as a redundant
comparison.

Added a coverity[unsigned_compare] annotation to silence the warning.
This preserves the macro's logic, ensuring the check remains valid
even if the underlying enum order is modified in the future.

Fixes #100002

Signed-off-by: David J. Leach, Jr. <tasmar@gmail.com>
2026-03-16 19:07:28 -05:00
Eira Siegel
14f7d496ae drivers: sensor: st: Pass internal return values to fetch caller
Several of the ST sensor implementations do not return a value to
the fetch caller, even when a fetch fails internally. This is
fixed by returning the value from the internal calls.

Signed-off-by: Eira Siegel <eira@the.cy>
2026-03-16 19:07:11 -05:00
William Markezana
6011b07c5c drivers: sensor: add Sensirion STCC4 CO2 sensor driver
Add driver for the Sensirion STCC4 miniature CO2 sensor. The STCC4
measures CO2 concentration (ppm), temperature, and humidity via I2C
using Sensirion's standard word+CRC protocol.

Features:
- Continuous and single-shot measurement modes
- CRC-8 validation on all sensor data
- Product ID readout at init
- Graceful handling of first measurement delay in continuous mode

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-16 19:02:13 -05:00
Benjamin Cabé
727b3cbde1 drivers: sensor: s3km1110: Add support for S3KM1110 24GHz mmWave sensor
This adds a new sensor driver (with custom channels) for the S3KM1110, a
24GHz mmWave radar sensor from Iclegend that uses a UART interface.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-16 18:59:55 -05:00
Shiril Tichkule
ebefb4421e drivers: sensor: adxl367: fix DATA_READY handling in trigger mode
Clearing the status register in adxl367_thread_cb() introduces
a one-sample latency since any trigger handler invoking
adxl367_get_accel_data() has to wait until the next sample sets the
DATA_READY bit again. To fix this, identify trigger source by
reading status_copy register in adxl367_thread_cb(). This preserves
the status register contents for verification prior to fetching data.

Signed-off-by: Shiril Tichkule <Shiril.Tichkule@analog.com>
2026-03-11 20:51:34 -04:00
Jordan Yates
bc55241d26 sensor: ti: ina2xx: compress struct ina2xx_channels
Compress the `struct ina2xx_channels` to only the channels that are
supported. This has the added benefit that trying to access an
unsupported channel (in the driver) is now a compile-time error.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:58:19 +00:00
Jordan Yates
d223c92ccc sensor: ti: ina2xx: un-indent channel fetches
Use `#ifdef`, `#else`, `#endif` to block out implementations, instead
of putting the checks inside an `if`, which results in all the
implementations being indented.

It also makes it much clearer to any user with syntax highlighting
configured, since the unsupported channels are greyed out.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:58:19 +00:00
Jordan Yates
eac2de02f8 sensor: ti: ina2xx: fix fault on unsupported channels
Fix calling `sensor_channel_get` on a channel that is not supported by
the hardware from faulting with a NULL de-reference.

This fixes the following pattern (used by `fuel_guage/composite`):
```
sensor_sample_fetch(dev);
if (sensor_channel_get(dev, chan, val) == -EINVAL) {
    printk("Not supported\n");
}
````

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:58:19 +00:00
Jordan Yates
87b530a272 Revert "drivers: sensor: ina2xx: fetch: remove redundant channel NULL checks"
This reverts commit ae44e1e7b7.

The only consequence of removing NULL checks is enabling NULL
dereference exceptions. The sensor API is a generic API, a generic
library built on top of that API does not always know which channels a
device supports.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:58:19 +00:00
Jordan Yates
1f61281b87 Revert "drivers: sensor: ina2xx: get: remove redundant channel NULL checks"
This reverts commit 8340e8c264.

The only consequence of removing NULL checks is enabling NULL
dereference exceptions. The sensor API is a generic API, a generic
library built on top of that API does not always know which channels a
device supports.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:58:19 +00:00
Bernhard Reiter
d082f98e6a drivers: sensor: tmag5170: fix sensor_value scaling in conversions
Use micro-units when converting readings to struct sensor_value.

The previous implementation used 100000-based scaling for fractional
values, while sensor_value expects 10^-6 units. As a result, converted
magnetic field values were reported as 10x the expected gauss value
instead of gauss, and the incorrect scaling caused apparent jumps in
the reported sensor readings.

Fix the conversions by using 1000000-based scaling and
sensor_value_from_micro().

Signed-off-by: Bernhard Reiter <bernhard.reiter@swarovskioptik.com>
2026-03-11 17:49:19 +00:00
Felix Wang
7a27272c46 drivers: sensor: nxp: Add QDC MCUX driver
Add driver support for NXP MCUX Quadrature Decoder (QDC) sensor.
The driver provides:
- Position tracking via SENSOR_CHAN_ROTATION channel
- Configurable counts per revolution
- Single phase and normal decoder work modes
- Input filtering with configurable count and sample period
- INPUTMUX integration for flexible signal routing
- Modulo count mode support

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-03-10 22:22:28 +01:00
Lutz Dittrich
4bf6cad3d8 drivers: sensor: lm75: return full resolution
There are many lm75 variants differing in temperature resolution.
Typical values are 9, 10, 11, and 12 bit. They all use the same
format (16 bit signed integer with LSB at 1/256 degree C).
Depending on the on the actual variant some of the LSB are not
defined. The new calculation scheme uses all 16 bits independent
on the actual sensor resolution. In the worst this leads to
some pseudo-resolution in case the undefined bits are not
reported as 0 by the sensor.

Signed-off-by: Lutz Dittrich <dittrich@netwake.com>
2026-03-10 22:20:01 +01:00
Mathieu Choplain
13f9f503e6 drivers: sensor: stm32_vref: obtain calibration data using NVMEM
Update bindings to consume a NVMEM cell instead of raw addresses, and
update the driver to support obtaining calibration data using the NVMEM
subsystem. For backwards compatibility and reduced footprint, the old
mechanism (direct MMIO read) is retained; a Kconfig option is introduced
to allow selecting which mechanism is used.

The sensor binding and SoC DTSI is updated accordingly.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-06 09:56:42 +01:00
Mathieu Choplain
d5bd2cd573 drivers: sensor: stm32_temp: obtain calibration data using NVMEM
Update bindings to consume a NVMEM cell instead of raw addresses, and
update the driver to support obtaining calibration data using the NVMEM
subsystem. For backwards compatibility and reduced footprint, the old
mechanism (direct MMIO read) is retained; a Kconfig option is introduced
to allow selecting which mechanism is used.

The sensor binding and SoC DTSI is updated accordingly.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-06 09:56:42 +01:00
Armando Visconti
6bc55daffc drivers/sensor: st: Add I2C/I3C/SPI RTIO setting in Kconfig
I2C_RTIO, I3C_RTIO and SPI_RTIO should be selected in the driver
itself on the basis of which busses have these devices instances.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-03 19:13:49 +00:00
Tobias Kässer
e7d6408a0d drivers: sensor: adxl345: implement proper interrupt configuration
Fix interrupt enable/disable sequence per ADXL345 datasheet
recommendations.

The ADXL345 datasheet (page 19) states: "When initially configuring
the interrupt pins, it is recommended that the functions and interrupt
mapping be done before enabling the interrupts."

Main changes:

1. Remove adxl345_interrupt_config() which incorrectly enabled
   interrupts during driver initialization without proper sequencing.
   It's not clear to me what was the purpose of this function as all
   the required logic (setting gpio interrups, adxl mapping and enabling
   happens already in tigger_set).
   I checked other drivers and this seems to be the common pattern.

2. Implement proper INT_ENABLE disable/enable sequence in
   adxl345_submit_stream() when reconfiguring watermark interrupts:
   - Disable watermark interrupt in INT_ENABLE
   - Configure interrupt mapping in INT_MAP
   - Flush FIFO
   - Re-enable watermark interrupt in INT_ENABLE

3. Add datasheet-based comments in adxl345_trigger.c explaining
   non-obvious register operations:
   - AC/DC coupling modes (ACT_INACT_CTL register)
   - INT_MAP routing logic (0=INT1, 1=INT2)
   - Interrupt clearing by reading data registers

4. Fix bug in adxl345_trigger_set() where ADXL345_INT_MAP_DATA_RDY_MSK
   was hardcoded instead of using the correct int_mask variable.

Fixes #100891

Tested on ebyte_e73_tbb with samples `accel_polling` and `accel_trig`

Signed-off-by: Tobias Kässer <t.kaesser@gmail.com>
2026-02-24 16:01:57 -06:00
Filip Stojanovic
52ec4ad339 drivers: sensor: adi: Add ADE7978 polyphase energy metering IC support
Add initial support for Analog Devices ADE7978 isolated energy
metering IC for polyphase shunt meters.

The driver implements the Zephyr sensor API and provides:
- SPI communication (read/write 8/16/32-bit registers)
- Phase A RMS current measurement (SENSOR_CHAN_CURRENT)
- Phase A RMS voltage measurement (SENSOR_CHAN_VOLTAGE)
- Device Tree bindings

This is an initial minimal working implementation. Future enhancements
will include:
- Multi-phase support (Phase B, C, Neutral)
- Active and reactive power measurement
- Interrupt support
- Calibration API

Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
2026-02-23 13:35:01 -06:00
Remi Buisson
9c9ee1b116 drivers: sensor: icm45686: update drivers
Use official TDK Invensense driver for icm45686 sensor in tdk_hal module.
Supports icm456xx variants.

Signed-off-by: Remi Buisson <remi.buisson@tdk.com>
2026-02-19 09:59:54 -06:00
Jeremy Thompson
bf8749007b drivers: sensor: ti_hdc302x: Fix mask on temp alert threshold
Correct a bitmask issue on the temperature alert threshold
as per the datasheet (Section 7.5.7.4.2).

Signed-off-by: Jeremy Thompson <jthompson@blackberry.com>
2026-02-17 13:20:03 -06:00
Marek Maškarinec
fe789226d6 drivers: tmag5273: Add device PM support
Adds device power manager support to TMAG5273 driver.
Suspending the device will put it into its SLEEP mode, resuming will
restore it to the mode configured in devicetree.

Before communicating with a device in sleep mode, an extra I2C transfer
is needed. Something like this is briefly mentioned in the datasheet,
but without any more specific details. The wake up has also been added
to the init function, even in case PM is disabled.

The device is marked as busy for the whole sample_fetch function.

Signed-off-by: Marek Maškarinec <marek.maskarinec@hardwario.com>
2026-02-17 13:19:19 -06:00
Mathieu Choplain
a11688fab5 drivers: *: stm32: don't check if clock device is ready
If the clock device (i.e., RCC) failed to initialize, we have bigger
problems than trying to call clock_control_{off,on,configure} on it.
Don't bother checking to save some footprint.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-13 18:59:16 +00:00
Bernhard Reiter
aadc11e115 drivers: sensor: tmag5170: fix SPI word size
Set the TMAG5170 SPI word size to 8 bits to match the device protocol and
avoid incorrect transfers on controllers that enforce the configured word
size.

Fixes: zephyrproject-rtos/zephyr#103615
Link: https://github.com/zephyrproject-rtos/zephyr/issues/103615
Signed-off-by: Bernhard Reiter <bernhard.reiter@swarovskioptik.com>
2026-02-13 09:48:43 -06:00
Bernhard Reiter
e70d683f86 drivers: sensor: tmag5170: reformat code
Apply code formatting to the TMAG5170 driver sources.

No functional changes intended.

Signed-off-by: Bernhard Reiter <bernhard.reiter@swarovskioptik.com>
2026-02-13 09:48:43 -06:00
Zafer SEN
e6f64330fb drivers: sensor: lps2xdf: add PM device support and power-domain init
Add full power‑management support to the LPS2XDF sensor family
(LPS22DF, LPS28DFW, ILPS22QS). This integrates the drivers with the
Zephyr PM subsystem and allows deferred initialization through
power domains.

Introduce a power_on() callback in lps2xdf_chip_api and track the
current ODR in lps2xdf_data for suspend/resume handling. Implement
a PM control callback that:

- powers on the chip on PM_DEVICE_ACTION_TURN_ON
- enters power‑down mode by setting ODR=0 on SUSPEND
- restores the previous ODR on RESUME
- performs no action on TURN_OFF

Convert initialization to use pm_device_driver_init() and update
the instantiation macros to use PM_DEVICE_DT_INST_DEFINE.

Update each chip driver (lps22df, lps28dfw, ilps22qs) to provide a
.power_on implementation and store the initial ODR in the driver
data.

This enables proper power‑domain control and low‑power operation for
all LPS2XDF‑based pressure sensors.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-05 16:52:32 +01:00
Zafer SEN
3797301ca3 drivers: sensor: lis2dw12: add power management support
Add power management (PM) support to the LIS2DW12
accelerometer driver, enabling integration with Zephyr's
PM subsystem and power domains.

Changes:

-Implement lis2dw12_pm_control() callback to handle PM actions:
   PM_DEVICE_ACTION_TURN_ON: Performs full chip initialization
   PM_DEVICE_ACTION_SUSPEND: Puts device into power-down mode (ODR off)
   PM_DEVICE_ACTION_RESUME: Restores previous output data rate
   PM_DEVICE_ACTION_TURN_OFF: Supported (no-op)
- Refactor driver initialization:
  Extract hardware init sequence into lis2dw12_power_up()
  Add lis2dw12_bus_check() for bus readiness verification
  Use pm_device_driver_init() for PM lifecycle management
  Add PM_DEVICE_DT_INST_DEFINE to device instantiation macro

This enables the LIS2DW12 to be controlled via power domains,
allowing deferred initialization until the device is explicitly turned on,
and proper suspend/resume for power savings.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-05 16:51:53 +01:00
Benjamin Cabé
73952ba1b0 drivers: sensor: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Oleksandr Skopets
7b0d298450 drivers: sensor: bmi270: fix I2C write to use single transaction
Combine register address and data in one buffer and use i2c_write_dt()
instead of i2c_burst_write_dt() so the transfer is a single I2C
transaction. Some I2C controllers (e.g. Infineon) split burst write
into two transactions with a STOP in between, which causes failure.

Signed-off-by: Oleksandr Skopets <skopets.sasha@gmail.com>
2026-02-04 15:33:12 -06:00
Benjamin Cabé
aa99fda10a drivers: sensor: use proper essential type for boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized and used with proper essential type (true/false).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Stefan Schwendeler
a82e5209d8 drivers: sensor: voltage_divider: Improves resolution to sub-millivolt
The calculation of the sensor value uses the intermediate value of the
function `adc_raw_to_microvolts_dt`. This results in a sensor value
with a resolution that is not below `voltage-divider-scaling` millivolts
which can be too rough for some applications.

Using `adc_raw_to_microvolts_dt` and 64-bit-based scaling improves
the resulting voltage resolution.
Therefore, the public function `voltage_divider_scale64_dt()` is
introduced, which performs the same as `voltage_divider_scale_dt()`.
This decision does not affect implementations that use the current
32-bit implementation of `voltage_divider_scale_dt()`.

Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com>
2026-01-29 17:20:02 +01:00
Mathieu Choplain
29f1498257 drivers: sensor: stm32_vref: read calibration data once during init
Instead of reading calibration data (device-unique, but never changing!)
then multiplying the result with a constant as part of each conversion,
perform the read+multiplication once during init and cache the result.

This notably avoids frequently an ICACHE disable/enable cycle on STM32H5,
which is a somewhat slow operation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 14:25:28 +00:00
Mathieu Choplain
98f450029e drivers: sensor: stm32_vref: move constants to instance configuration
Various fields were stored in the instance data despite being initialized
at compile-time to a constant value.
Move these fields to the instance configuration instead.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 14:25:28 +00:00
Benjamin Cabé
e7ae93b39f drivers: sensor: tmag5273: fix typo in log message
fixes what seems to be a copy-paste error

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-28 14:42:50 +01:00
Ryan McClelland
779383e769 drivers: counter: add 64bit apis
Add apis for 64 bits.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-01-27 10:49:43 +00:00
Gaetan Perrot
7af0a2fcdf sensor: adi: adxl372: stream: check return value of adxl372_set_op_mode
Check the return value of adxl372_set_op_mode() in
adxl372_submit_stream() and abort on error.

Fix CID: 516239

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 13:54:21 +01:00