Re: [PATCH v5 2/8] iio: accel: adxl313: add function to enable measurement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux