aboutsummaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorGravatar William Breathitt Gray <wbg@kernel.org> 2024-03-21 12:32:16 -0400
committerGravatar William Breathitt Gray <wbg@kernel.org> 2024-04-02 13:15:03 -0400
commit916baadd293a4d11e08a7ca1e2968314451ade6c (patch)
tree8eec0c8cbac96f9dd36abac65ac4b3c2f885f7b8 /drivers/counter
parentcounter: ti-eqep: Convert to platform remove callback returning void (diff)
downloadlinux-916baadd293a4d11e08a7ca1e2968314451ade6c.tar.gz
linux-916baadd293a4d11e08a7ca1e2968314451ade6c.tar.bz2
linux-916baadd293a4d11e08a7ca1e2968314451ade6c.zip
counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro
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>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/ti-ecap-capture.c2
1 files changed, 1 insertions, 1 deletions
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[] = {