[PATCH v2] iio: adc: stm32: add oversampling support
David Lechner
dlechner at baylibre.com
Tue Apr 8 07:43:11 PDT 2025
On 4/7/25 11:07 AM, Olivier MOYSAN wrote:
> Hi David,
>
> Thanks for reviewing,
>
> On 4/4/25 18:15, David Lechner wrote:
>> On 4/3/25 11:23 AM, Olivier Moysan wrote:
...
>>> +#define STM32H7_OVSR_MASK GENMASK(25, 16) /* Correspond to OSVR field in datasheet */
>>
>> nit: Comment seems obvious and can be left out.
>>
>
> Oversampling bit name is "OSVR" in datasheet H7, while oversampling shift is "OVSS". For naming consistency, I used OVSR instead of OSVR,
> and highlighted it with a comment. As an alternative, STM32H7_OVSR could be renamed, but I would rather keep it unchanged.
>
Ah, my eyes do not easily see the difference between OSVR and OVSR.
Makes sense to keep it so grep picks up both spellings.
More information about the linux-arm-kernel
mailing list