[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZfxhEKdSi1amfcJC@ishi>
Date: Thu, 21 Mar 2024 12:32:16 -0400
From: William Breathitt Gray <wbg@...nel.org>
To: Vignesh Raghavendra <vigneshr@...com>,
Julien Panis <jpanis@...libre.com>
Cc: linux-iio@...r.kernel.org, linux-omap@...r.kernel.org,
linux-kernel@...r.kernel.org,
Fabrice Gasnier <fabrice.gasnier@...s.st.com>, syednwaris@...il.com
Subject: [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY
macro
Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to
define the "frequency" extension.
Signed-off-by: William Breathitt Gray <wbg@...nel.org>
---
drivers/counter/ti-ecap-capture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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[] = {
base-commit: eca588187f9129300c6e44d64b819545cede463d
--
2.44.0
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists