diff options
author | Fabrice Gasnier <fabrice.gasnier@foss.st.com> | 2024-03-07 14:32:57 +0100 |
---|---|---|
committer | William Breathitt Gray <wbg@kernel.org> | 2024-04-02 19:10:34 +0200 |
commit | f7131297d638ffc9a63005464f7108e0dfdda8b6 (patch) | |
tree | fb5078abb2a2c9b1a38b12c2a1ef1a0befec3195 /drivers/counter | |
parent | counter: Introduce the COUNTER_COMP_FREQUENCY() macro (diff) | |
download | linux-f7131297d638ffc9a63005464f7108e0dfdda8b6.tar.xz linux-f7131297d638ffc9a63005464f7108e0dfdda8b6.zip |
counter: stm32-timer-cnt: rename quadrature signal
Drop the Quadrature convention in the signal name. On stm32-timer:
- Quadrature A signal corresponds to timer input ch1, hence "Channel 1"
- Quadrature B signal corresponds to timer input ch2, hence "Channel 2".
So name these signals after their channel. I suspect it referred to the
(unique) quadrature counter support earlier, but the physical input
really is CH1/CH2. This will be easier to support other counter modes.
Reviewed-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20240307133306.383045-2-fabrice.gasnier@foss.st.com
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Diffstat (limited to 'drivers/counter')
-rw-r--r-- | drivers/counter/stm32-timer-cnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c index 6206d2dc3d47..36d812ddf162 100644 --- a/drivers/counter/stm32-timer-cnt.c +++ b/drivers/counter/stm32-timer-cnt.c @@ -279,11 +279,11 @@ static const struct counter_ops stm32_timer_cnt_ops = { static struct counter_signal stm32_signals[] = { { .id = 0, - .name = "Channel 1 Quadrature A" + .name = "Channel 1" }, { .id = 1, - .name = "Channel 1 Quadrature B" + .name = "Channel 2" } }; |