Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/counter/ti-ecap-capture.c
··· 369 369 }; 370 370 371 371 static struct counter_comp ecap_cnt_clock_ext[] = { 372 - COUNTER_COMP_SIGNAL_U64("frequency", ecap_cnt_clk_get_freq, NULL), 372 + COUNTER_COMP_FREQUENCY(ecap_cnt_clk_get_freq), 373 373 }; 374 374 375 375 static const enum counter_signal_polarity ecap_cnt_pol_avail[] = {