Re: [PATCH v5 2/8] iio: accel: adxl313: add function to enable measurement
From: Jonathan Cameron
Date: Sun Jun 22 2025 - 07:14:00 EST
On Sun, 15 Jun 2025 22:22:52 +0000
Lothar Rubusch <l.rubusch@xxxxxxxxx> wrote:
> Refactor the control of measurement and standby modes for the sensor.
> Instead of directly writing to the register, encapsulate this operation
> in a dedicated function that handles enabling and disabling measurement.
> This approach will reduce code duplication wherever sensor configuration
> changes are required. In subsequent patches, measurement mode will be
> set to standby as part of this process.
>
> Additionally, simplify the control mask to include only the measurement
> bit. The sleep bit governs a different behavior—putting the sensor into
> sleep mode, not just standby for configuration—and is currently unused.
> Therefore, there's no need to include both the sleep and measurement
> bits in the same mask.
>
> Signed-off-by: Lothar Rubusch <l.rubusch@xxxxxxxxx>
Applied.