counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro
authorWilliam Breathitt Gray <wbg@kernel.org>
Thu, 21 Mar 2024 16:32:16 +0000 (12:32 -0400)
committerWilliam Breathitt Gray <wbg@kernel.org>
Tue, 2 Apr 2024 17:15:03 +0000 (13:15 -0400)
Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to
define the "frequency" extension.

Link: https://lore.kernel.org/r/ZfxhEKdSi1amfcJC@ishi
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
drivers/counter/ti-ecap-capture.c

index d33d35055b911fddaa599528af102546f1e91b5b..675447315cafb831b36ccd27676904b4c5ff600f 100644 (file)
@@ -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[] = {