All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro
@ 2024-03-21 16:32 William Breathitt Gray
  2024-04-02 17:50 ` William Breathitt Gray
  0 siblings, 1 reply; 2+ messages in thread
From: William Breathitt Gray @ 2024-03-21 16:32 UTC (permalink / raw)
  To: Vignesh Raghavendra, Julien Panis
  Cc: linux-iio, linux-omap, linux-kernel, Fabrice Gasnier, syednwaris

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

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(-)

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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro
  2024-03-21 16:32 [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro William Breathitt Gray
@ 2024-04-02 17:50 ` William Breathitt Gray
  0 siblings, 0 replies; 2+ messages in thread
From: William Breathitt Gray @ 2024-04-02 17:50 UTC (permalink / raw)
  To: Vignesh Raghavendra, Julien Panis, William Breathitt Gray
  Cc: linux-iio, linux-omap, linux-kernel, Fabrice Gasnier, syednwaris


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,
-- 
William Breathitt Gray <wbg@kernel.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-02 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 16:32 [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro William Breathitt Gray
2024-04-02 17:50 ` William Breathitt Gray

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.