Skip to contentSkip to conversation

counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro

PATCH Applied William Breathitt Gray 1 participant 2 messages Mar 21, 2024 – Apr 2, 2024

Subsystems (3)
lore
Share & tools
lore

William Breathitt Gray

author maintainer
#0 lore raw

PATCH 1/1 counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro

Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to define the "frequency" extension.

---
 drivers/counter/ti-ecap-capture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/counter/ti-ecap-capture.c +1 -1
index d33d35055b91..675447315caf 100644
@@ -369,7 +369,7 @@ static const enum counter_synapse_action ecap_cnt_input_actions[] = {
 };
 
 static struct counter_comp ecap_cnt_clock_ext[] = {
-	COUNTER_COMP_SIGNAL_U64("frequency", ecap_cnt_clk_get_freq, NULL),
+	COUNTER_COMP_FREQUENCY(ecap_cnt_clk_get_freq),
 };
 
 static const enum counter_signal_polarity ecap_cnt_pol_avail[] = {

base-commit: eca588187f9129300c6e44d64b819545cede463d

Signature · 1 line
2.44.0
author maintainer Applied
#1 lore raw
Quoted 4 lines · William Breathitt Gray

Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to define the "frequency" extension.

Applied, thanks!

[1/1] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro

      commit: 916baadd293a4d11e08a7ca1e2968314451ade6c

Best regards,

Signature · 1 line
William Breathitt Gray <[email protected]>