diff mbox series

counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro

Message ID ZfxhEKdSi1amfcJC@ishi
State New
Headers show
Series counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro | expand

Commit Message

William Breathitt Gray March 21, 2024, 4:32 p.m. UTC
Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to
define the "frequency" extension.

Signed-off-by: William Breathitt Gray <wbg@kernel.org>
---
 drivers/counter/ti-ecap-capture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: eca588187f9129300c6e44d64b819545cede463d

Comments

William Breathitt Gray April 2, 2024, 5:50 p.m. UTC | #1
On Thu, 21 Mar 2024 12:32:16 -0400, William Breathitt Gray wrote:
> 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,
diff mbox series

Patch

diff --git a/drivers/counter/ti-ecap-capture.c b/drivers/counter/ti-ecap-capture.c
index d33d35055b91..675447315caf 100644
--- a/drivers/counter/ti-ecap-capture.c
+++ b/drivers/counter/ti-ecap-capture.c
@@ -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[] = {