projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b986b6
)
counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro
author
William Breathitt Gray
<wbg@kernel.org>
Thu, 21 Mar 2024 16:32:16 +0000
(12:32 -0400)
committer
William 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
patch
|
blob
|
history
diff --git
a/drivers/counter/ti-ecap-capture.c
b/drivers/counter/ti-ecap-capture.c
index d33d35055b911fddaa599528af102546f1e91b5b..675447315cafb831b36ccd27676904b4c5ff600f 100644
(file)
--- 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[] = {